Documentation ¶
Index ¶
- type SSO
- func (c *SSO) AuthInfoWriter() runtime.ClientAuthInfoWriter
- func (c *SSO) AuthURL() string
- func (c *SSO) CharacterID() int32
- func (c *SSO) ExchangeCode(ctx context.Context, code string) (*oauth2.Token, error)
- func (c *SSO) GetCharacter() string
- func (c *SSO) HaveScopes(scopes ...string) bool
- func (c *SSO) MatchScopes(scopes ...string) bool
- func (c *SSO) Save(t *oauth2.Token) error
- func (c *SSO) Scopes() []string
- func (c *SSO) Token() (*oauth2.Token, error)
- func (c *SSO) ValidState(state string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSO ¶ added in v0.2.0
type SSO struct {
// contains filtered or unexported fields
}
func NewSSO ¶ added in v0.2.0
func NewSSO(store tokenstores.TokenStore, Character string, config *oauth2.Config, logger *zap.Logger, validator func(*jwt.Token) (interface{}, error)) *SSO
func (*SSO) AuthInfoWriter ¶ added in v0.2.0
func (c *SSO) AuthInfoWriter() runtime.ClientAuthInfoWriter
func (*SSO) CharacterID ¶ added in v0.2.0
func (*SSO) ExchangeCode ¶ added in v0.2.0
func (*SSO) GetCharacter ¶ added in v0.2.0
func (*SSO) HaveScopes ¶ added in v0.2.0
func (*SSO) MatchScopes ¶ added in v0.2.0
func (*SSO) ValidState ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.