sso

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSOClient

type SSOClient struct {
	*SSOConfig
}

func (*SSOClient) AuthInfoWriter

func (c *SSOClient) AuthInfoWriter() runtime.ClientAuthInfoWriter

func (*SSOClient) TokenString

func (c *SSOClient) TokenString() *string

func (*SSOClient) Valid

func (c *SSOClient) Valid() error

type SSOConfig

type SSOConfig struct {
	OAC *oauth2.Config

	Scopes              []string
	Character           string
	CharacterID         int32
	State               string
	CodeVerifier        string
	CodeChallange       string
	CodeChallangeMethod string
	Store               tokenstores.TokenStore
	// contains filtered or unexported fields
}

func NewSSOConfig

func NewSSOConfig(store tokenstores.TokenStore, Character string, config *oauth2.Config, logger *zap.Logger, validator func(*jwt.Token) (interface{}, error)) *SSOConfig

func (*SSOConfig) HaveScopes

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

func (*SSOConfig) JWTToken

func (c *SSOConfig) JWTToken() (*jwt.Token, error)

func (*SSOConfig) MatchScopes

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

func (*SSOConfig) Save

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

func (*SSOConfig) Token

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

Jump to

Keyboard shortcuts

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