Documentation ¶
Index ¶
- Variables
- type AuthStorage
- func (s *AuthStorage) AuthRequestByCode(context.Context, string) (op.AuthRequest, error)
- func (s *AuthStorage) AuthRequestByID(context.Context, string) (op.AuthRequest, error)
- func (s *AuthStorage) Close() error
- func (s *AuthStorage) CreateAccessAndRefreshTokens(ctx context.Context, request op.TokenRequest, currentRefreshToken string) (accessTokenID string, newRefreshTokenID string, expiration time.Time, ...)
- func (s *AuthStorage) CreateAccessToken(context.Context, op.TokenRequest) (accessTokenID string, expiration time.Time, err error)
- func (s *AuthStorage) CreateAuthRequest(context.Context, *oidc.AuthRequest, string) (op.AuthRequest, error)
- func (s *AuthStorage) DeleteAuthRequest(context.Context, string) error
- func (s *AuthStorage) GetKeySet(context.Context) (*jose.JSONWebKeySet, error)
- func (s *AuthStorage) GetSigningKey(context.Context, chan<- jose.SigningKey)
- func (s *AuthStorage) Health(ctx context.Context) error
- func (s *AuthStorage) RevokeToken(ctx context.Context, tokenID string, userID string, clientID string) *oidc.Error
- func (s *AuthStorage) SaveAuthCode(context.Context, string, string) error
- func (s *AuthStorage) TerminateSession(ctx context.Context, userID string, clientID string) error
- func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshTokenID string) (op.RefreshTokenRequest, error)
- type RedisClient
- type Request
- func (req *Request) Done() bool
- func (req *Request) GetAuthTime() time.Time
- func (req *Request) GetCodeChallenge() *oidc.CodeChallenge
- func (req *Request) GetResponseMode() oidc.ResponseMode
- func (req *Request) GetResponseType() oidc.ResponseType
- func (req *Request) SetCurrentScopes(scopes []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnimplemented = errors.New("unimplemented method")
Functions ¶
This section is empty.
Types ¶
type AuthStorage ¶
type AuthStorage struct { AuthRequests RedisClient Tokens RedisClient }
func (*AuthStorage) AuthRequestByCode ¶
func (s *AuthStorage) AuthRequestByCode(context.Context, string) (op.AuthRequest, error)
func (*AuthStorage) AuthRequestByID ¶
func (s *AuthStorage) AuthRequestByID(context.Context, string) (op.AuthRequest, error)
func (*AuthStorage) Close ¶
func (s *AuthStorage) Close() error
func (*AuthStorage) CreateAccessAndRefreshTokens ¶
func (*AuthStorage) CreateAccessToken ¶
func (s *AuthStorage) CreateAccessToken(context.Context, op.TokenRequest) (accessTokenID string, expiration time.Time, err error)
func (*AuthStorage) CreateAuthRequest ¶
func (s *AuthStorage) CreateAuthRequest(context.Context, *oidc.AuthRequest, string) (op.AuthRequest, error)
func (*AuthStorage) DeleteAuthRequest ¶
func (s *AuthStorage) DeleteAuthRequest(context.Context, string) error
func (*AuthStorage) GetKeySet ¶
func (s *AuthStorage) GetKeySet(context.Context) (*jose.JSONWebKeySet, error)
func (*AuthStorage) GetSigningKey ¶
func (s *AuthStorage) GetSigningKey(context.Context, chan<- jose.SigningKey)
func (*AuthStorage) RevokeToken ¶
func (*AuthStorage) SaveAuthCode ¶
func (*AuthStorage) TerminateSession ¶
func (*AuthStorage) TokenRequestByRefreshToken ¶
func (s *AuthStorage) TokenRequestByRefreshToken(ctx context.Context, refreshTokenID string) (op.RefreshTokenRequest, error)
type RedisClient ¶
RedisClient describes the methods consumed by this package. This allows for switching between singular/cluser/sentinel clients.
type Request ¶
Request implements both AuthRequest and RefreshTokenRequest, as they have overlapping properties. Unused fieldnames are automatically hidden by the interface types uses in AuthStorage.
func (*Request) GetAuthTime ¶
func (*Request) GetCodeChallenge ¶
func (req *Request) GetCodeChallenge() *oidc.CodeChallenge
func (*Request) GetResponseMode ¶
func (req *Request) GetResponseMode() oidc.ResponseMode
func (*Request) GetResponseType ¶
func (req *Request) GetResponseType() oidc.ResponseType
func (*Request) SetCurrentScopes ¶
Click to show internal directories.
Click to hide internal directories.