Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClientNotFound = errors.New("client not found") ErrClientSecretMismatch = errors.New("client secret is not the given secret") ErrClientNoSecret = errors.New("client has no secret") ErrClientSecretRequired = errors.New("client secret required") ErrSessionNameMissing = errors.New("session name missing") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
RedirectURIPattern string `json:"redirect_uri_pattern,omitempty"`
SecretHash string `json:"secret_hash,omitempty"`
SessionName string `json:"session_name,omitempty"`
DisableImplicit bool `json:"disable_implicit,omitempty"`
EnableRefreshTokenRotation bool `json:"enable_refresh_token_rotation,omitempty"`
}
type Store ¶
type Store interface {
Authenticate(clientID, clientSecret string) (*Client, error)
Lookup(clientID string) (*Client, error)
PerSessionNameMap(defaultSessionName string) (map[string][]string, error)
Ping() error
}
func NewInMemoryClientStore ¶
func NewSqlStore ¶
type StoreSettings ¶
Click to show internal directories.
Click to hide internal directories.