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) GetResponseMode() oidc.ResponseMode
- func (a *AuthRequest) GetResponseType() oidc.ResponseType
- func (a *AuthRequest) GetScopes() []string
- func (a *AuthRequest) GetState() string
- func (a *AuthRequest) GetSubject() string
- func (a *AuthRequest) SetCurrentScopes(scopes []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) CreateAccessAndRefreshTokens(ctx context.Context, request op.TokenRequest, currentRefreshToken string) (accessTokenID string, newRefreshToken string, expiration time.Time, err error)
- func (s *AuthStorage) CreateAccessToken(ctx context.Context, request op.TokenRequest) (string, time.Time, error)
- func (s *AuthStorage) CreateAuthRequest(_ context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, 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)
- func (s *AuthStorage) Health(ctx context.Context) error
- func (s *AuthStorage) RevokeToken(ctx context.Context, token string, userID string, clientID string) *oidc.Error
- func (s *AuthStorage) SaveAuthCode(_ context.Context, id, code string) error
- func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, introspect oidc.IntrospectionResponse, ...) error
- func (s *AuthStorage) SetUserinfoFromScopes(ctx context.Context, userinfo oidc.UserInfoSetter, _, _ string, _ []string) error
- func (s *AuthStorage) SetUserinfoFromToken(ctx context.Context, userinfo oidc.UserInfoSetter, _, _, _ string) error
- func (s *AuthStorage) TerminateSession(_ context.Context, userID, clientID string) error
- func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshToken string) (op.RefreshTokenRequest, error)
- func (s *AuthStorage) ValidateJWTProfileScopes(ctx context.Context, userID string, scope []string) ([]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() oidc.AuthMethod
- func (c *ConfClient) ClockSkew() time.Duration
- func (c *ConfClient) DevMode() bool
- func (c *ConfClient) GetID() string
- func (c *ConfClient) GrantTypes() []oidc.GrantType
- 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 ResponseMode oidc.ResponseMode RedirectURI string Nonce string ClientID string CodeChallenge *oidc.CodeChallenge State string }
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) GetResponseMode ¶
func (a *AuthRequest) GetResponseMode() oidc.ResponseMode
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
func (*AuthRequest) SetCurrentScopes ¶
func (a *AuthRequest) SetCurrentScopes(scopes []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) CreateAccessAndRefreshTokens ¶
func (*AuthStorage) CreateAccessToken ¶
func (s *AuthStorage) CreateAccessToken(ctx context.Context, request op.TokenRequest) (string, time.Time, error)
func (*AuthStorage) CreateAuthRequest ¶
func (s *AuthStorage) CreateAuthRequest(_ context.Context, authReq *oidc.AuthRequest, _ string) (op.AuthRequest, 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 ¶
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 ¶
func (*AuthStorage) GetSigningKey ¶
func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey)
func (*AuthStorage) RevokeToken ¶
func (*AuthStorage) SaveAuthCode ¶
func (s *AuthStorage) SaveAuthCode(_ context.Context, id, code string) error
func (*AuthStorage) SetIntrospectionFromToken ¶
func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, introspect oidc.IntrospectionResponse, tokenID, subject, clientID string) error
func (*AuthStorage) SetUserinfoFromScopes ¶
func (s *AuthStorage) SetUserinfoFromScopes(ctx context.Context, userinfo oidc.UserInfoSetter, _, _ string, _ []string) error
func (*AuthStorage) SetUserinfoFromToken ¶
func (s *AuthStorage) SetUserinfoFromToken(ctx context.Context, userinfo oidc.UserInfoSetter, _, _, _ string) error
func (*AuthStorage) TerminateSession ¶
func (s *AuthStorage) TerminateSession(_ context.Context, userID, clientID string) error
func (*AuthStorage) TokenRequestByRefreshToken ¶
func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshToken string) (op.RefreshTokenRequest, error)
func (*AuthStorage) ValidateJWTProfileScopes ¶
type ConfClient ¶
type ConfClient struct { ID string // contains filtered or unexported fields }
func (*ConfClient) AccessTokenType ¶
func (c *ConfClient) AccessTokenType() op.AccessTokenType
func (*ConfClient) AllowedScopes ¶
func (c *ConfClient) AllowedScopes() []string
func (*ConfClient) ApplicationType ¶
func (c *ConfClient) ApplicationType() op.ApplicationType
func (*ConfClient) AuthMethod ¶
func (c *ConfClient) AuthMethod() oidc.AuthMethod
func (*ConfClient) ClockSkew ¶
func (c *ConfClient) ClockSkew() time.Duration
func (*ConfClient) DevMode ¶
func (c *ConfClient) DevMode() bool
func (*ConfClient) GetID ¶
func (c *ConfClient) GetID() string
func (*ConfClient) GrantTypes ¶
func (c *ConfClient) GrantTypes() []oidc.GrantType
func (*ConfClient) IDTokenLifetime ¶
func (c *ConfClient) IDTokenLifetime() time.Duration
func (*ConfClient) IDTokenUserinfoClaimsAssertion ¶
func (c *ConfClient) IDTokenUserinfoClaimsAssertion() bool
func (*ConfClient) IsScopeAllowed ¶
func (c *ConfClient) IsScopeAllowed(scope string) bool
func (*ConfClient) LoginURL ¶
func (c *ConfClient) LoginURL(id string) string
func (*ConfClient) PostLogoutRedirectURIs ¶
func (c *ConfClient) PostLogoutRedirectURIs() []string
func (*ConfClient) RedirectURIs ¶
func (c *ConfClient) RedirectURIs() []string
func (*ConfClient) ResponseTypes ¶
func (c *ConfClient) ResponseTypes() []oidc.ResponseType
func (*ConfClient) RestrictAdditionalAccessTokenScopes ¶
func (c *ConfClient) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
func (*ConfClient) RestrictAdditionalIdTokenScopes ¶
func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
Click to show internal directories.
Click to hide internal directories.