Documentation ¶
Index ¶
- type Store
- func (s *Store) ClientAssertionJWTValid(ctx context.Context, jti string) error
- func (s *Store) CreateAccessTokenSession(ctx context.Context, signature string, request fosite.Requester) error
- func (s *Store) CreateAuthorizeCodeSession(ctx context.Context, code string, request fosite.Requester) error
- func (s *Store) CreatePARSession(ctx context.Context, requestURI string, request fosite.AuthorizeRequester) error
- func (s *Store) CreatePKCERequestSession(ctx context.Context, signature string, requester fosite.Requester) error
- func (s *Store) CreateRefreshTokenSession(ctx context.Context, signature string, request fosite.Requester) error
- func (s *Store) DeleteAccessTokenSession(ctx context.Context, signature string) error
- func (s *Store) DeletePARSession(ctx context.Context, requestURI string) error
- func (s *Store) DeletePKCERequestSession(ctx context.Context, signature string) error
- func (s *Store) DeleteRefreshTokenSession(ctx context.Context, signature string) error
- func (s *Store) GetAccessTokenSession(ctx context.Context, signature string, session fosite.Session) (fosite.Requester, error)
- func (s *Store) GetAuthorizeCodeSession(ctx context.Context, code string, session fosite.Session) (fosite.Requester, error)
- func (s *Store) GetClient(ctx context.Context, id string) (fosite.Client, error)
- func (s *Store) GetPARSession(ctx context.Context, requestURI string) (fosite.AuthorizeRequester, error)
- func (s *Store) GetPKCERequestSession(ctx context.Context, signature string, session fosite.Session) (fosite.Requester, error)
- func (s *Store) GetRefreshTokenSession(ctx context.Context, signature string, session fosite.Session) (fosite.Requester, error)
- func (s *Store) InvalidateAuthorizeCodeSession(ctx context.Context, code string) error
- func (s *Store) RevokeAccessToken(ctx context.Context, requestID string) error
- func (s *Store) RevokeRefreshToken(ctx context.Context, requestID string) error
- func (s *Store) RevokeRefreshTokenMaybeGracePeriod(ctx context.Context, requestID string, signature string) error
- func (s *Store) SetClientAssertionJWT(ctx context.Context, jti string, exp time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClientAssertionJWTValid ¶
ClientAssertionJWTValid returns an error if the JTI is known or the DB check failed and nil if the JTI is not known.
func (*Store) CreateAccessTokenSession ¶
func (*Store) CreateAuthorizeCodeSession ¶
func (*Store) CreatePARSession ¶
func (*Store) CreatePKCERequestSession ¶
func (*Store) CreateRefreshTokenSession ¶
func (*Store) DeleteAccessTokenSession ¶
func (*Store) DeletePARSession ¶
func (*Store) DeletePKCERequestSession ¶
func (*Store) DeleteRefreshTokenSession ¶
func (*Store) GetAccessTokenSession ¶
func (*Store) GetAuthorizeCodeSession ¶
func (*Store) GetClient ¶
GetClient loads the client by its ID or returns an error if the client does not exist or another error occurred.
func (*Store) GetPARSession ¶
func (*Store) GetPKCERequestSession ¶
func (*Store) GetRefreshTokenSession ¶
func (*Store) InvalidateAuthorizeCodeSession ¶
func (*Store) RevokeAccessToken ¶
func (*Store) RevokeRefreshToken ¶
func (*Store) RevokeRefreshTokenMaybeGracePeriod ¶
func (*Store) SetClientAssertionJWT ¶
SetClientAssertionJWT marks a JTI as known for the given expiry time. Before inserting the new JTI, it will clean up any existing JTIs that have expired as those tokens can not be replayed due to the expiry.
Click to show internal directories.
Click to hide internal directories.