sso

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) AuthURL added in v0.2.0

func (c *SSO) AuthURL() string

func (*SSO) CharacterID added in v0.2.0

func (c *SSO) CharacterID() int32

func (*SSO) ExchangeCode added in v0.2.0

func (c *SSO) ExchangeCode(ctx context.Context, code string) (*oauth2.Token, error)

func (*SSO) GetCharacter added in v0.2.0

func (c *SSO) GetCharacter() string

func (*SSO) HaveScopes added in v0.2.0

func (c *SSO) HaveScopes(scopes ...string) bool

func (*SSO) MatchScopes added in v0.2.0

func (c *SSO) MatchScopes(scopes ...string) bool

func (*SSO) Save added in v0.2.0

func (c *SSO) Save(t *oauth2.Token) error

func (*SSO) Scopes added in v0.2.0

func (c *SSO) Scopes() []string

func (*SSO) Token added in v0.2.0

func (c *SSO) Token() (*oauth2.Token, error)

func (*SSO) ValidState added in v0.2.0

func (c *SSO) ValidState(state string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL