Documentation
¶
Index ¶
- type AuthorizeSessionStore
- func (s *AuthorizeSessionStore) Delete(sessionID string)
- func (s *AuthorizeSessionStore) Get(sessionID string) (*PendingAuthorize, bool)
- func (s *AuthorizeSessionStore) Put(sessionID string, req fosite.AuthorizeRequester)
- func (s *AuthorizeSessionStore) StartCleanup(ctx context.Context, interval time.Duration)
- type MarmotSession
- type PendingAuthorize
- type Provider
- type Store
- func (s *Store) ClientAssertionJWTValid(_ context.Context, _ string) error
- func (s *Store) CreateAccessTokenSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *Store) CreateAuthorizeCodeSession(_ context.Context, code string, req fosite.Requester) error
- func (s *Store) CreatePKCERequestSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *Store) CreateRefreshTokenSession(_ context.Context, signature string, _ string, req fosite.Requester) error
- func (s *Store) DeleteAccessTokenSession(_ context.Context, signature string) error
- func (s *Store) DeletePKCERequestSession(_ context.Context, signature string) error
- func (s *Store) DeleteRefreshTokenSession(_ context.Context, signature string) error
- func (s *Store) GetAccessTokenSession(_ context.Context, signature string, _ fosite.Session) (fosite.Requester, error)
- func (s *Store) GetAuthorizeCodeSession(_ context.Context, code string, _ fosite.Session) (fosite.Requester, error)
- func (s *Store) GetClient(_ context.Context, id string) (fosite.Client, error)
- func (s *Store) GetPKCERequestSession(_ context.Context, signature string, _ fosite.Session) (fosite.Requester, error)
- func (s *Store) GetRefreshTokenSession(_ context.Context, signature string, _ fosite.Session) (fosite.Requester, error)
- func (s *Store) InvalidateAuthorizeCodeSession(_ context.Context, code string) error
- func (s *Store) RegisterClient(client fosite.Client)
- func (s *Store) RevokeAccessToken(_ context.Context, _ string) error
- func (s *Store) RevokeRefreshToken(_ context.Context, _ string) error
- func (s *Store) RevokeRefreshTokenMaybeGracePeriod(_ context.Context, _ string, _ string) error
- func (s *Store) RotateRefreshToken(_ context.Context, _ string, _ string) error
- func (s *Store) SetClientAssertionJWT(_ context.Context, _ string, _ time.Time) error
- func (s *Store) StartCleanup(ctx context.Context, interval time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeSessionStore ¶
type AuthorizeSessionStore struct {
// contains filtered or unexported fields
}
func NewAuthorizeSessionStore ¶
func NewAuthorizeSessionStore() *AuthorizeSessionStore
func (*AuthorizeSessionStore) Delete ¶
func (s *AuthorizeSessionStore) Delete(sessionID string)
func (*AuthorizeSessionStore) Get ¶
func (s *AuthorizeSessionStore) Get(sessionID string) (*PendingAuthorize, bool)
func (*AuthorizeSessionStore) Put ¶
func (s *AuthorizeSessionStore) Put(sessionID string, req fosite.AuthorizeRequester)
func (*AuthorizeSessionStore) StartCleanup ¶
func (s *AuthorizeSessionStore) StartCleanup(ctx context.Context, interval time.Duration)
type MarmotSession ¶
type MarmotSession struct {
UserID string
Username string
ExpiresAt map[fosite.TokenType]time.Time
}
func NewMarmotSession ¶
func NewMarmotSession(userID, username string) *MarmotSession
func (*MarmotSession) Clone ¶
func (s *MarmotSession) Clone() fosite.Session
func (*MarmotSession) GetExpiresAt ¶
func (s *MarmotSession) GetExpiresAt(key fosite.TokenType) time.Time
func (*MarmotSession) GetSubject ¶
func (s *MarmotSession) GetSubject() string
func (*MarmotSession) GetUsername ¶
func (s *MarmotSession) GetUsername() string
func (*MarmotSession) SetExpiresAt ¶
func (s *MarmotSession) SetExpiresAt(key fosite.TokenType, exp time.Time)
type PendingAuthorize ¶
type PendingAuthorize struct {
Request fosite.AuthorizeRequester
CreatedAt time.Time
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClientAssertionJWTValid ¶
func (*Store) CreateAccessTokenSession ¶
func (s *Store) CreateAccessTokenSession(_ context.Context, signature string, req fosite.Requester) error
Marmot JWTs are stateless; these methods exist only to satisfy the fosite interface.
func (*Store) CreateAuthorizeCodeSession ¶
func (*Store) CreatePKCERequestSession ¶
func (*Store) CreateRefreshTokenSession ¶
func (s *Store) CreateRefreshTokenSession(_ context.Context, signature string, _ string, req fosite.Requester) error
Marmot does not issue refresh tokens; these are unused.
func (*Store) DeleteAccessTokenSession ¶
func (*Store) DeletePKCERequestSession ¶
func (*Store) DeleteRefreshTokenSession ¶
func (*Store) GetAccessTokenSession ¶
func (*Store) GetAuthorizeCodeSession ¶
func (*Store) GetPKCERequestSession ¶
func (*Store) GetRefreshTokenSession ¶
func (*Store) InvalidateAuthorizeCodeSession ¶
func (*Store) RegisterClient ¶
func (*Store) RevokeAccessToken ¶
func (*Store) RevokeRefreshToken ¶
func (*Store) RevokeRefreshTokenMaybeGracePeriod ¶
func (*Store) RotateRefreshToken ¶
func (*Store) SetClientAssertionJWT ¶
Click to show internal directories.
Click to hide internal directories.