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, 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) (op.AuthRequest, error)
- func (s *AuthStorage) CreateToken(_ context.Context, authReq op.AuthRequest) (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) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
- func (s *AuthStorage) GetSigningKey(_ context.Context, keyCh chan<- jose.SigningKey, _ chan<- error, ...)
- func (s *AuthStorage) GetUserinfoFromScopes(context.Context, []string) (*oidc.Userinfo, error)
- func (s *AuthStorage) Health(ctx context.Context) 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) ApplicationType() op.ApplicationType
- func (c *ConfClient) GetAuthMethod() op.AuthMethod
- func (c *ConfClient) GetID() string
- func (c *ConfClient) IDTokenLifetime() time.Duration
- func (c *ConfClient) LoginURL(id string) string
- func (c *ConfClient) PostLogoutRedirectURIs() []string
- func (c *ConfClient) RedirectURIs() []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, 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) (op.AuthRequest, error)
func (*AuthStorage) CreateToken ¶ added in v0.3.1
func (s *AuthStorage) CreateToken(_ context.Context, authReq op.AuthRequest) (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) GetKeySet ¶
func (s *AuthStorage) GetKeySet(_ context.Context) (*jose.JSONWebKeySet, error)
func (*AuthStorage) GetSigningKey ¶
func (*AuthStorage) GetUserinfoFromScopes ¶
func (*AuthStorage) Health ¶ added in v0.2.1
func (s *AuthStorage) Health(ctx context.Context) 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) ApplicationType ¶
func (c *ConfClient) ApplicationType() op.ApplicationType
func (*ConfClient) GetAuthMethod ¶
func (c *ConfClient) GetAuthMethod() op.AuthMethod
func (*ConfClient) GetID ¶
func (c *ConfClient) GetID() string
func (*ConfClient) IDTokenLifetime ¶
func (c *ConfClient) IDTokenLifetime() time.Duration
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
Click to show internal directories.
Click to hide internal directories.