Documentation
¶
Index ¶
- func NewAuthStorage() op.Storage
- type AuthRequest
- func (a *AuthRequest) Done() bool
- func (a *AuthRequest) GetACR() string
- func (a *AuthRequest) GetAMR() []string
- func (a *AuthRequest) GetAudience() []string
- func (a *AuthRequest) GetAuthTime() time.Time
- func (a *AuthRequest) GetClientID() string
- func (a *AuthRequest) GetCode() string
- func (a *AuthRequest) GetCodeChallenge() *oidc.CodeChallenge
- func (a *AuthRequest) GetID() string
- func (a *AuthRequest) GetNonce() string
- func (a *AuthRequest) GetRedirectURI() string
- func (a *AuthRequest) GetResponseType() oidc.ResponseType
- func (a *AuthRequest) GetScopes() []string
- func (a *AuthRequest) GetState() string
- func (a *AuthRequest) GetSubject() string
- type AuthStorage
- func (s *AuthStorage) AuthRequestByCode(_ context.Context, code string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthRequestByID(_ context.Context, id string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthorizeClientIDSecret(_ context.Context, id string, _ string) error
- func (s *AuthStorage) CreateAuthRequest(_ context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, error)
- func (s *AuthStorage) CreateToken(_ context.Context, authReq op.TokenRequest) (string, time.Time, error)
- func (s *AuthStorage) DeleteAuthRequest(context.Context, string) error
- func (s *AuthStorage) GetClientByClientID(_ context.Context, id string) (op.Client, error)
- func (s *AuthStorage) GetKey(_ context.Context) (*rsa.PrivateKey, error)
- func (s *AuthStorage) GetKeyByIDAndUserID(_ context.Context, _, _ string) (*jose.JSONWebKey, error)
- func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
- func (s *AuthStorage) GetPrivateClaimsFromScopes(_ context.Context, _, _ string, _ []string) (map[string]interface{}, error)
- func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey, _ chan<- error, ...)
- func (s *AuthStorage) GetUserinfoFromScopes(_ context.Context, _, _ string, _ []string) (oidc.UserInfo, error)
- func (s *AuthStorage) GetUserinfoFromToken(ctx context.Context, _, _, _ string) (oidc.UserInfo, error)
- func (s *AuthStorage) Health(ctx context.Context) error
- func (s *AuthStorage) SaveAuthCode(_ context.Context, id, code string) error
- func (s *AuthStorage) SaveNewKeyPair(ctx context.Context) error
- func (s *AuthStorage) TerminateSession(_ context.Context, userID, clientID string) error
- type ConfClient
- func (c *ConfClient) AccessTokenType() op.AccessTokenType
- func (c *ConfClient) AllowedScopes() []string
- func (c *ConfClient) ApplicationType() op.ApplicationType
- func (c *ConfClient) AuthMethod() op.AuthMethod
- func (c *ConfClient) ClockSkew() time.Duration
- func (c *ConfClient) DevMode() bool
- func (c *ConfClient) GetID() string
- func (c *ConfClient) IDTokenLifetime() time.Duration
- func (c *ConfClient) IDTokenUserinfoClaimsAssertion() bool
- func (c *ConfClient) IsScopeAllowed(scope string) bool
- func (c *ConfClient) LoginURL(id string) string
- func (c *ConfClient) PostLogoutRedirectURIs() []string
- func (c *ConfClient) RedirectURIs() []string
- func (c *ConfClient) ResponseTypes() []oidc.ResponseType
- func (c *ConfClient) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
- func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthStorage ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct {
ID string
ResponseType oidc.ResponseType
RedirectURI string
Nonce string
ClientID string
CodeChallenge *oidc.CodeChallenge
}
func (*AuthRequest) Done ¶
func (a *AuthRequest) Done() bool
func (*AuthRequest) GetACR ¶
func (a *AuthRequest) GetACR() string
func (*AuthRequest) GetAMR ¶
func (a *AuthRequest) GetAMR() []string
func (*AuthRequest) GetAudience ¶
func (a *AuthRequest) GetAudience() []string
func (*AuthRequest) GetAuthTime ¶
func (a *AuthRequest) GetAuthTime() time.Time
func (*AuthRequest) GetClientID ¶
func (a *AuthRequest) GetClientID() string
func (*AuthRequest) GetCode ¶
func (a *AuthRequest) GetCode() string
func (*AuthRequest) GetCodeChallenge ¶
func (a *AuthRequest) GetCodeChallenge() *oidc.CodeChallenge
func (*AuthRequest) GetID ¶
func (a *AuthRequest) GetID() string
func (*AuthRequest) GetNonce ¶
func (a *AuthRequest) GetNonce() string
func (*AuthRequest) GetRedirectURI ¶
func (a *AuthRequest) GetRedirectURI() string
func (*AuthRequest) GetResponseType ¶
func (a *AuthRequest) GetResponseType() oidc.ResponseType
func (*AuthRequest) GetScopes ¶
func (a *AuthRequest) GetScopes() []string
func (*AuthRequest) GetState ¶
func (a *AuthRequest) GetState() string
func (*AuthRequest) GetSubject ¶
func (a *AuthRequest) GetSubject() string
type AuthStorage ¶
type AuthStorage struct {
// contains filtered or unexported fields
}
func (*AuthStorage) AuthRequestByCode ¶
func (s *AuthStorage) AuthRequestByCode(_ context.Context, code string) (op.AuthRequest, error)
func (*AuthStorage) AuthRequestByID ¶
func (s *AuthStorage) AuthRequestByID(_ context.Context, id string) (op.AuthRequest, error)
func (*AuthStorage) AuthorizeClientIDSecret ¶
func (*AuthStorage) CreateAuthRequest ¶
func (s *AuthStorage) CreateAuthRequest(_ context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, error)
func (*AuthStorage) CreateToken ¶ added in v0.3.1
func (s *AuthStorage) CreateToken(_ context.Context, authReq op.TokenRequest) (string, time.Time, error)
func (*AuthStorage) DeleteAuthRequest ¶
func (s *AuthStorage) DeleteAuthRequest(context.Context, string) error
func (*AuthStorage) GetClientByClientID ¶
func (*AuthStorage) GetKey ¶
func (s *AuthStorage) GetKey(_ context.Context) (*rsa.PrivateKey, error)
func (*AuthStorage) GetKeyByIDAndUserID ¶ added in v0.9.0
func (s *AuthStorage) GetKeyByIDAndUserID(_ context.Context, _, _ string) (*jose.JSONWebKey, error)
func (*AuthStorage) GetKeySet ¶
func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
func (*AuthStorage) GetPrivateClaimsFromScopes ¶ added in v0.12.0
func (*AuthStorage) GetSigningKey ¶
func (*AuthStorage) GetUserinfoFromScopes ¶
func (*AuthStorage) GetUserinfoFromToken ¶ added in v0.4.2
func (*AuthStorage) Health ¶ added in v0.2.1
func (s *AuthStorage) Health(ctx context.Context) error
func (*AuthStorage) SaveAuthCode ¶ added in v0.6.2
func (s *AuthStorage) SaveAuthCode(_ context.Context, id, code string) error
func (*AuthStorage) SaveNewKeyPair ¶ added in v0.2.1
func (s *AuthStorage) SaveNewKeyPair(ctx context.Context) error
func (*AuthStorage) TerminateSession ¶ added in v0.4.0
func (s *AuthStorage) TerminateSession(_ context.Context, userID, clientID string) error
type ConfClient ¶
type ConfClient struct {
ID string
// contains filtered or unexported fields
}
func (*ConfClient) AccessTokenType ¶
func (c *ConfClient) AccessTokenType() op.AccessTokenType
func (*ConfClient) AllowedScopes ¶ added in v0.12.0
func (c *ConfClient) AllowedScopes() []string
func (*ConfClient) ApplicationType ¶
func (c *ConfClient) ApplicationType() op.ApplicationType
func (*ConfClient) AuthMethod ¶ added in v0.7.0
func (c *ConfClient) AuthMethod() op.AuthMethod
func (*ConfClient) ClockSkew ¶ added in v0.13.0
func (c *ConfClient) ClockSkew() time.Duration
func (*ConfClient) DevMode ¶ added in v0.7.0
func (c *ConfClient) DevMode() bool
func (*ConfClient) GetID ¶
func (c *ConfClient) GetID() string
func (*ConfClient) IDTokenLifetime ¶
func (c *ConfClient) IDTokenLifetime() time.Duration
func (*ConfClient) IDTokenUserinfoClaimsAssertion ¶ added in v0.13.0
func (c *ConfClient) IDTokenUserinfoClaimsAssertion() bool
func (*ConfClient) IsScopeAllowed ¶ added in v0.12.4
func (c *ConfClient) IsScopeAllowed(scope string) bool
func (*ConfClient) LoginURL ¶
func (c *ConfClient) LoginURL(id string) string
func (*ConfClient) PostLogoutRedirectURIs ¶ added in v0.4.0
func (c *ConfClient) PostLogoutRedirectURIs() []string
func (*ConfClient) RedirectURIs ¶
func (c *ConfClient) RedirectURIs() []string
func (*ConfClient) ResponseTypes ¶ added in v0.7.0
func (c *ConfClient) ResponseTypes() []oidc.ResponseType
func (*ConfClient) RestrictAdditionalAccessTokenScopes ¶ added in v0.12.4
func (c *ConfClient) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
func (*ConfClient) RestrictAdditionalIdTokenScopes ¶ added in v0.12.4
func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
Click to show internal directories.
Click to hide internal directories.