Documentation ¶
Index ¶
- type AccessToken
- type AuthRequest
- func (a *AuthRequest) Done() bool
- func (a *AuthRequest) FinishWithSubject(id string)
- 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) 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
- type Client
- func (c *Client) AccessTokenType() op.AccessTokenType
- func (c *Client) ApplicationType() op.ApplicationType
- func (c *Client) AuthMethod() oidc.AuthMethod
- func (c *Client) ClockSkew() time.Duration
- func (c *Client) DevMode() bool
- func (c *Client) GetID() string
- func (c *Client) GrantTypes() []oidc.GrantType
- func (c *Client) IDTokenLifetime() time.Duration
- func (c *Client) IDTokenUserinfoClaimsAssertion() bool
- func (c *Client) IsScopeAllowed(scope string) bool
- func (c *Client) LoginURL(id string) string
- func (c *Client) PostLogoutRedirectURIs() []string
- func (c *Client) RedirectURIs() []string
- func (c *Client) ResponseTypes() []oidc.ResponseType
- func (c *Client) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
- func (c *Client) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
- type Key
- type RefreshToken
- func (r *RefreshToken) GetAMR() []string
- func (r *RefreshToken) GetAudience() []string
- func (r *RefreshToken) GetAuthTime() time.Time
- func (r *RefreshToken) GetClientID() string
- func (r *RefreshToken) GetScopes() []string
- func (r *RefreshToken) GetSubject() string
- func (r *RefreshToken) SetCurrentScopes(scopes []string)
- type SigningKey
- type Storage
- func (s *Storage) AuthRequestByCode(ctx context.Context, code string) (op.AuthRequest, error)
- func (s *Storage) AuthRequestByID(ctx context.Context, id string) (op.AuthRequest, error)
- func (s *Storage) AuthorizeClientIDSecret(ctx context.Context, clientID, clientSecret string) error
- func (s *Storage) CreateAccessAndRefreshTokens(ctx context.Context, data op.TokenRequest, oldRefreshTokenId string) (newAccessTokenID string, newRefreshTokenID string, expiration time.Time, ...)
- func (s *Storage) CreateAccessToken(ctx context.Context, data op.TokenRequest) (accessTokenID string, expiration time.Time, err error)
- func (s *Storage) CreateAuthRequest(ctx context.Context, req *oidc.AuthRequest, userID string) (op.AuthRequest, error)
- func (s *Storage) DeleteAuthRequest(ctx context.Context, id string) error
- func (s *Storage) GetClientByClientID(ctx context.Context, clientID string) (op.Client, error)
- func (s *Storage) GetKeyByIDAndClientID(ctx context.Context, keyID, clientID string) (*jose.JSONWebKey, error)
- func (s *Storage) GetPrivateClaimsFromScopes(ctx context.Context, userID, clientID string, scopes []string) (map[string]any, error)
- func (s *Storage) GetRefreshTokenInfo(ctx context.Context, clientID string, token string) (userID string, tokenID string, err error)
- func (s *Storage) Health(context.Context) error
- func (s *Storage) KeySet(context.Context) ([]op.Key, error)
- func (s *Storage) LocalRequestByID(id string) (*AuthRequest, error)
- func (s *Storage) RevokeToken(ctx context.Context, tokenOrTokenID string, userID string, clientID string) *oidc.Error
- func (s *Storage) SaveAuthCode(ctx context.Context, id string, code string) error
- func (s *Storage) SetIntrospectionFromToken(ctx context.Context, introspection *oidc.IntrospectionResponse, ...) error
- func (s *Storage) SetUserinfoFromRequest(ctx context.Context, userinfo *oidc.UserInfo, request op.IDTokenRequest, ...) error
- func (s *Storage) SetUserinfoFromScopes(ctx context.Context, userinfo *oidc.UserInfo, userID, clientID string, ...) error
- func (s *Storage) SetUserinfoFromToken(ctx context.Context, userinfo *oidc.UserInfo, tokenID, subject, origin string) error
- func (s *Storage) SignatureAlgorithms(context.Context) ([]jose.SignatureAlgorithm, error)
- func (s *Storage) SigningKey(context.Context) (op.SigningKey, error)
- func (s *Storage) TerminateSession(ctx context.Context, userID string, clientID string) error
- func (s *Storage) TokenRequestByRefreshToken(ctx context.Context, refreshTokenID string) (op.RefreshTokenRequest, error)
- func (s *Storage) ValidateJWTProfileScopes(ctx context.Context, userID string, scopes []string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
// contains filtered or unexported fields
}
type AuthRequest ¶
type AuthRequest struct {
// contains filtered or unexported fields
}
func (*AuthRequest) Done ¶
func (a *AuthRequest) Done() bool
func (*AuthRequest) FinishWithSubject ¶
func (a *AuthRequest) FinishWithSubject(id string)
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) 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
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AccessTokenType ¶
func (c *Client) AccessTokenType() op.AccessTokenType
func (*Client) ApplicationType ¶
func (c *Client) ApplicationType() op.ApplicationType
func (*Client) AuthMethod ¶
func (c *Client) AuthMethod() oidc.AuthMethod
func (*Client) GrantTypes ¶
func (*Client) IDTokenLifetime ¶
func (*Client) IDTokenUserinfoClaimsAssertion ¶
func (*Client) IsScopeAllowed ¶
func (*Client) PostLogoutRedirectURIs ¶
func (*Client) RedirectURIs ¶
func (*Client) ResponseTypes ¶
func (c *Client) ResponseTypes() []oidc.ResponseType
func (*Client) RestrictAdditionalAccessTokenScopes ¶
func (*Client) RestrictAdditionalIdTokenScopes ¶
type Key ¶
type Key struct {
SigningKey
}
type RefreshToken ¶
type RefreshToken struct {
// contains filtered or unexported fields
}
func (*RefreshToken) GetAMR ¶
func (r *RefreshToken) GetAMR() []string
func (*RefreshToken) GetAudience ¶
func (r *RefreshToken) GetAudience() []string
func (*RefreshToken) GetAuthTime ¶
func (r *RefreshToken) GetAuthTime() time.Time
func (*RefreshToken) GetClientID ¶
func (r *RefreshToken) GetClientID() string
func (*RefreshToken) GetScopes ¶
func (r *RefreshToken) GetScopes() []string
func (*RefreshToken) GetSubject ¶
func (r *RefreshToken) GetSubject() string
func (*RefreshToken) SetCurrentScopes ¶
func (r *RefreshToken) SetCurrentScopes(scopes []string)
type SigningKey ¶
type SigningKey struct {
// contains filtered or unexported fields
}
func (*SigningKey) ID ¶
func (s *SigningKey) ID() string
func (*SigningKey) Key ¶
func (s *SigningKey) Key() any
func (*SigningKey) SignatureAlgorithm ¶
func (s *SigningKey) SignatureAlgorithm() jose.SignatureAlgorithm
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func CreateStorage ¶
func (*Storage) AuthRequestByCode ¶
func (*Storage) AuthRequestByID ¶
func (*Storage) AuthorizeClientIDSecret ¶
func (*Storage) CreateAccessAndRefreshTokens ¶
func (*Storage) CreateAccessToken ¶
func (*Storage) CreateAuthRequest ¶
func (s *Storage) CreateAuthRequest(ctx context.Context, req *oidc.AuthRequest, userID string) (op.AuthRequest, error)
func (*Storage) DeleteAuthRequest ¶
func (*Storage) GetClientByClientID ¶
func (*Storage) GetKeyByIDAndClientID ¶
func (*Storage) GetPrivateClaimsFromScopes ¶
func (*Storage) GetRefreshTokenInfo ¶
func (*Storage) LocalRequestByID ¶
func (s *Storage) LocalRequestByID(id string) (*AuthRequest, error)
func (*Storage) RevokeToken ¶
func (*Storage) SaveAuthCode ¶
func (*Storage) SetIntrospectionFromToken ¶
func (*Storage) SetUserinfoFromRequest ¶
func (*Storage) SetUserinfoFromScopes ¶
func (s *Storage) SetUserinfoFromScopes(ctx context.Context, userinfo *oidc.UserInfo, userID, clientID string, scopes []string) error
Depreciated
func (*Storage) SetUserinfoFromToken ¶
func (*Storage) SignatureAlgorithms ¶
func (*Storage) SigningKey ¶
func (*Storage) TerminateSession ¶
func (*Storage) TokenRequestByRefreshToken ¶
Click to show internal directories.
Click to hide internal directories.