Documentation ¶
Index ¶
- Variables
- type Dependencies
- type OAuth2RequestSQL
- type OldMigrationRecord
- type Persister
- func (p *Persister) AcceptLogoutRequest(ctx context.Context, challenge string) (*consent.LogoutRequest, error)
- func (p *Persister) AddKey(ctx context.Context, set string, key *jose.JSONWebKey) error
- func (p *Persister) AddKeySet(ctx context.Context, set string, keys *jose.JSONWebKeySet) error
- func (p *Persister) Authenticate(ctx context.Context, id string, secret []byte) (*client.Client, error)
- func (p *Persister) BeginTX(ctx context.Context) (context.Context, error)
- func (p *Persister) ClientAssertionJWTValid(ctx context.Context, jti string) error
- func (p *Persister) Commit(ctx context.Context) error
- func (p *Persister) ConfirmLoginSession(ctx context.Context, id string, authenticatedAt time.Time, subject string, ...) error
- func (p *Persister) Connection(ctx context.Context) *pop.Connection
- func (p *Persister) CountClients(ctx context.Context) (int, error)
- func (p *Persister) CountGrants(ctx context.Context) (int, error)
- func (p *Persister) CountSubjectsGrantedConsentRequests(ctx context.Context, subject string) (int, error)
- func (p *Persister) CreateAccessTokenSession(ctx context.Context, signature string, requester fosite.Requester) (err error)
- func (p *Persister) CreateAuthorizeCodeSession(ctx context.Context, signature string, requester fosite.Requester) (err error)
- func (p *Persister) CreateClient(ctx context.Context, c *client.Client) error
- func (p *Persister) CreateConsentRequest(ctx context.Context, req *consent.ConsentRequest) error
- func (p *Persister) CreateForcedObfuscatedLoginSession(ctx context.Context, session *consent.ForcedObfuscatedLoginSession) error
- func (p *Persister) CreateGrant(ctx context.Context, g trust.Grant, publicKey jose.JSONWebKey) error
- func (p *Persister) CreateLoginRequest(ctx context.Context, req *consent.LoginRequest) error
- func (p *Persister) CreateLoginSession(ctx context.Context, session *consent.LoginSession) error
- func (p *Persister) CreateLogoutRequest(ctx context.Context, request *consent.LogoutRequest) error
- func (p *Persister) CreateOpenIDConnectSession(ctx context.Context, signature string, requester fosite.Requester) error
- func (p *Persister) CreatePKCERequestSession(ctx context.Context, signature string, requester fosite.Requester) error
- func (p *Persister) CreateRefreshTokenSession(ctx context.Context, signature string, requester fosite.Requester) (err error)
- func (p *Persister) DeleteAccessTokenSession(ctx context.Context, signature string) (err error)
- func (p *Persister) DeleteAccessTokens(ctx context.Context, clientID string) error
- func (p *Persister) DeleteClient(ctx context.Context, id string) error
- func (p *Persister) DeleteGrant(ctx context.Context, id string) error
- func (p *Persister) DeleteKey(ctx context.Context, set, kid string) error
- func (p *Persister) DeleteKeySet(ctx context.Context, set string) error
- func (p *Persister) DeleteLoginSession(ctx context.Context, id string) error
- func (p *Persister) DeleteOpenIDConnectSession(ctx context.Context, signature string) error
- func (p *Persister) DeletePKCERequestSession(ctx context.Context, signature string) error
- func (p *Persister) DeleteRefreshTokenSession(ctx context.Context, signature string) (err error)
- func (p *Persister) FindGrantedAndRememberedConsentRequests(ctx context.Context, client, subject string) ([]consent.HandledConsentRequest, error)
- func (p *Persister) FindSubjectsGrantedConsentRequests(ctx context.Context, subject string, limit, offset int) ([]consent.HandledConsentRequest, error)
- func (p *Persister) FlushInactiveAccessTokens(ctx context.Context, notAfter time.Time, limit int, batchSize int) error
- func (p *Persister) FlushInactiveGrants(ctx context.Context, notAfter time.Time, limit int, batchSize int) error
- func (p *Persister) FlushInactiveLoginConsentRequests(ctx context.Context, notAfter time.Time, limit int, batchSize int) error
- func (p *Persister) FlushInactiveRefreshTokens(ctx context.Context, notAfter time.Time, limit int, batchSize int) error
- func (p *Persister) GenerateAndPersistKeySet(ctx context.Context, set, kid, alg, use string) (*jose.JSONWebKeySet, error)
- func (p *Persister) GetAccessTokenSession(ctx context.Context, signature string, session fosite.Session) (request fosite.Requester, err error)
- func (p *Persister) GetAuthorizeCodeSession(ctx context.Context, signature string, session fosite.Session) (request fosite.Requester, err error)
- func (p *Persister) GetClient(ctx context.Context, id string) (fosite.Client, error)
- func (p *Persister) GetClientAssertionJWT(ctx context.Context, j string) (*oauth2.BlacklistedJTI, error)
- func (p *Persister) GetClients(ctx context.Context, filters client.Filter) ([]client.Client, error)
- func (p *Persister) GetConcreteClient(ctx context.Context, id string) (*client.Client, error)
- func (p *Persister) GetConcreteGrant(ctx context.Context, id string) (trust.Grant, error)
- func (p *Persister) GetConsentRequest(ctx context.Context, challenge string) (*consent.ConsentRequest, error)
- func (p *Persister) GetForcedObfuscatedLoginSession(ctx context.Context, client, obfuscated string) (*consent.ForcedObfuscatedLoginSession, error)
- func (p *Persister) GetGrants(ctx context.Context, limit, offset int, optionalIssuer string) ([]trust.Grant, error)
- func (p *Persister) GetKey(ctx context.Context, set, kid string) (*jose.JSONWebKeySet, error)
- func (p *Persister) GetKeySet(ctx context.Context, set string) (*jose.JSONWebKeySet, error)
- func (p *Persister) GetLoginRequest(ctx context.Context, challenge string) (*consent.LoginRequest, error)
- func (p *Persister) GetLogoutRequest(ctx context.Context, challenge string) (*consent.LogoutRequest, error)
- func (p *Persister) GetOpenIDConnectSession(ctx context.Context, signature string, requester fosite.Requester) (fosite.Requester, error)
- func (p *Persister) GetPKCERequestSession(ctx context.Context, signature string, session fosite.Session) (fosite.Requester, error)
- func (p *Persister) GetPublicKey(ctx context.Context, issuer string, subject string, keyId string) (*jose.JSONWebKey, error)
- func (p *Persister) GetPublicKeyScopes(ctx context.Context, issuer string, subject string, keyId string) ([]string, error)
- func (p *Persister) GetPublicKeys(ctx context.Context, issuer string, subject string) (*jose.JSONWebKeySet, error)
- func (p *Persister) GetRefreshTokenSession(ctx context.Context, signature string, session fosite.Session) (request fosite.Requester, err error)
- func (p *Persister) GetRememberedLoginSession(ctx context.Context, id string) (*consent.LoginSession, error)
- func (p *Persister) HandleConsentRequest(ctx context.Context, challenge string, r *consent.HandledConsentRequest) (*consent.ConsentRequest, error)
- func (p *Persister) HandleLoginRequest(ctx context.Context, challenge string, r *consent.HandledLoginRequest) (lr *consent.LoginRequest, err error)
- func (p *Persister) InvalidateAuthorizeCodeSession(ctx context.Context, signature string) (err error)
- func (p *Persister) IsJWTUsed(ctx context.Context, jti string) (bool, error)
- func (p *Persister) ListUserAuthenticatedClientsWithBackChannelLogout(ctx context.Context, subject, sid string) ([]client.Client, error)
- func (p *Persister) ListUserAuthenticatedClientsWithFrontChannelLogout(ctx context.Context, subject, sid string) ([]client.Client, error)
- func (p *Persister) MarkJWTUsedForTime(ctx context.Context, jti string, exp time.Time) error
- func (p *Persister) MigrateDown(ctx context.Context, steps int) error
- func (p *Persister) MigrateUp(ctx context.Context) error
- func (p *Persister) MigrateUpTo(ctx context.Context, steps int) (int, error)
- func (p *Persister) MigrationStatus(ctx context.Context) (popx.MigrationStatuses, error)
- func (p *Persister) PrepareMigration(_ context.Context) error
- func (p *Persister) RejectLogoutRequest(ctx context.Context, challenge string) error
- func (p *Persister) RevokeAccessToken(ctx context.Context, id string) error
- func (p *Persister) RevokeRefreshToken(ctx context.Context, id string) error
- func (p *Persister) RevokeRefreshTokenMaybeGracePeriod(ctx context.Context, id string, signature string) error
- func (p *Persister) RevokeSubjectClientConsentSession(ctx context.Context, user, client string) error
- func (p *Persister) RevokeSubjectConsentSession(ctx context.Context, user string) error
- func (p *Persister) RevokeSubjectLoginSession(ctx context.Context, subject string) error
- func (p *Persister) Rollback(ctx context.Context) error
- func (p *Persister) SetClientAssertionJWT(ctx context.Context, jti string, exp time.Time) error
- func (p *Persister) SetClientAssertionJWTRaw(ctx context.Context, jti *oauth2.BlacklistedJTI) error
- func (p *Persister) UpdateClient(ctx context.Context, cl *client.Client) error
- func (p *Persister) UpdateKey(ctx context.Context, set string, key *jose.JSONWebKey) error
- func (p *Persister) UpdateKeySet(ctx context.Context, set string, keySet *jose.JSONWebKeySet) error
- func (p *Persister) VerifyAndInvalidateConsentRequest(ctx context.Context, verifier string) (*consent.HandledConsentRequest, error)
- func (p *Persister) VerifyAndInvalidateLoginRequest(ctx context.Context, verifier string) (*consent.HandledLoginRequest, error)
- func (p *Persister) VerifyAndInvalidateLogoutRequest(ctx context.Context, verifier string) (*consent.LogoutRequest, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTransactionOpen = errors.New("There is already a transaction in this context.") ErrNoTransactionOpen = errors.New("There is no transaction in this context.") )
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶ added in v1.9.0
type Dependencies interface { ClientHasher() fosite.Hasher KeyCipher() *jwk.AEAD KeyGenerators() map[string]jwk.KeyGenerator x.RegistryLogger x.TracingProvider }
type OAuth2RequestSQL ¶ added in v1.9.0
type OAuth2RequestSQL struct { ID string `db:"signature"` Request string `db:"request_id"` ConsentChallenge sql.NullString `db:"challenge_id"` RequestedAt time.Time `db:"requested_at"` Client string `db:"client_id"` Scopes string `db:"scope"` GrantedScope string `db:"granted_scope"` RequestedAudience string `db:"requested_audience"` GrantedAudience string `db:"granted_audience"` Form string `db:"form_data"` Subject string `db:"subject"` Active bool `db:"active"` Session []byte `db:"session_data"` Table tableName `db:"-"` }
func (OAuth2RequestSQL) TableName ¶ added in v1.9.0
func (r OAuth2RequestSQL) TableName() string
type OldMigrationRecord ¶
this type is copied from sql-migrate to remove the dependency
type Persister ¶
type Persister struct {
// contains filtered or unexported fields
}
func NewPersister ¶
func (*Persister) AcceptLogoutRequest ¶ added in v1.9.0
func (*Persister) Authenticate ¶ added in v1.9.0
func (*Persister) ClientAssertionJWTValid ¶ added in v1.9.0
func (*Persister) ConfirmLoginSession ¶ added in v1.9.0
func (*Persister) Connection ¶
func (*Persister) CountClients ¶ added in v1.9.0
func (*Persister) CountGrants ¶ added in v1.11.0
func (*Persister) CountSubjectsGrantedConsentRequests ¶ added in v1.9.0
func (*Persister) CreateAccessTokenSession ¶ added in v1.9.0
func (*Persister) CreateAuthorizeCodeSession ¶ added in v1.9.0
func (*Persister) CreateClient ¶ added in v1.9.0
func (*Persister) CreateConsentRequest ¶ added in v1.9.0
func (*Persister) CreateForcedObfuscatedLoginSession ¶ added in v1.9.0
func (*Persister) CreateGrant ¶ added in v1.11.0
func (*Persister) CreateLoginRequest ¶ added in v1.9.0
func (*Persister) CreateLoginSession ¶ added in v1.9.0
func (*Persister) CreateLogoutRequest ¶ added in v1.9.0
func (*Persister) CreateOpenIDConnectSession ¶ added in v1.9.0
func (*Persister) CreatePKCERequestSession ¶ added in v1.9.0
func (*Persister) CreateRefreshTokenSession ¶ added in v1.9.0
func (*Persister) DeleteAccessTokenSession ¶ added in v1.9.0
func (*Persister) DeleteAccessTokens ¶ added in v1.9.0
func (*Persister) DeleteClient ¶ added in v1.9.0
func (*Persister) DeleteGrant ¶ added in v1.11.0
func (*Persister) DeleteKeySet ¶ added in v1.9.0
func (*Persister) DeleteLoginSession ¶ added in v1.9.0
func (*Persister) DeleteOpenIDConnectSession ¶ added in v1.9.0
func (*Persister) DeletePKCERequestSession ¶ added in v1.9.0
func (*Persister) DeleteRefreshTokenSession ¶ added in v1.9.0
func (*Persister) FindGrantedAndRememberedConsentRequests ¶ added in v1.9.0
func (*Persister) FindSubjectsGrantedConsentRequests ¶ added in v1.9.0
func (*Persister) FlushInactiveAccessTokens ¶ added in v1.9.0
func (*Persister) FlushInactiveGrants ¶ added in v1.11.0
func (*Persister) FlushInactiveLoginConsentRequests ¶ added in v1.10.0
func (*Persister) FlushInactiveRefreshTokens ¶ added in v1.10.0
func (*Persister) GenerateAndPersistKeySet ¶ added in v1.11.0
func (*Persister) GetAccessTokenSession ¶ added in v1.9.0
func (*Persister) GetAuthorizeCodeSession ¶ added in v1.9.0
func (*Persister) GetClientAssertionJWT ¶ added in v1.9.0
func (*Persister) GetClients ¶ added in v1.9.0
func (*Persister) GetConcreteClient ¶ added in v1.9.0
func (*Persister) GetConcreteGrant ¶ added in v1.11.0
func (*Persister) GetConsentRequest ¶ added in v1.9.0
func (*Persister) GetForcedObfuscatedLoginSession ¶ added in v1.9.0
func (*Persister) GetLoginRequest ¶ added in v1.9.0
func (*Persister) GetLogoutRequest ¶ added in v1.9.0
func (*Persister) GetOpenIDConnectSession ¶ added in v1.9.0
func (*Persister) GetPKCERequestSession ¶ added in v1.9.0
func (*Persister) GetPublicKey ¶ added in v1.11.0
func (*Persister) GetPublicKeyScopes ¶ added in v1.11.0
func (*Persister) GetPublicKeys ¶ added in v1.11.0
func (*Persister) GetRefreshTokenSession ¶ added in v1.9.0
func (*Persister) GetRememberedLoginSession ¶ added in v1.9.0
func (*Persister) HandleConsentRequest ¶ added in v1.9.0
func (p *Persister) HandleConsentRequest(ctx context.Context, challenge string, r *consent.HandledConsentRequest) (*consent.ConsentRequest, error)
func (*Persister) HandleLoginRequest ¶ added in v1.9.0
func (p *Persister) HandleLoginRequest(ctx context.Context, challenge string, r *consent.HandledLoginRequest) (lr *consent.LoginRequest, err error)
func (*Persister) InvalidateAuthorizeCodeSession ¶ added in v1.9.0
func (*Persister) ListUserAuthenticatedClientsWithBackChannelLogout ¶ added in v1.9.0
func (*Persister) ListUserAuthenticatedClientsWithFrontChannelLogout ¶ added in v1.9.0
func (*Persister) MarkJWTUsedForTime ¶ added in v1.11.0
func (*Persister) MigrateDown ¶
func (*Persister) MigrateUpTo ¶
func (*Persister) MigrationStatus ¶
func (*Persister) RejectLogoutRequest ¶ added in v1.9.0
func (*Persister) RevokeAccessToken ¶ added in v1.9.0
func (*Persister) RevokeRefreshToken ¶ added in v1.9.0
func (*Persister) RevokeRefreshTokenMaybeGracePeriod ¶ added in v1.11.3
func (*Persister) RevokeSubjectClientConsentSession ¶ added in v1.9.0
func (*Persister) RevokeSubjectConsentSession ¶ added in v1.9.0
func (*Persister) RevokeSubjectLoginSession ¶ added in v1.9.0
func (*Persister) SetClientAssertionJWT ¶ added in v1.9.0
func (*Persister) SetClientAssertionJWTRaw ¶ added in v1.9.0
func (*Persister) UpdateClient ¶ added in v1.9.0
func (*Persister) UpdateKeySet ¶ added in v1.11.0
func (*Persister) VerifyAndInvalidateConsentRequest ¶ added in v1.9.0
func (*Persister) VerifyAndInvalidateLoginRequest ¶ added in v1.9.0
func (*Persister) VerifyAndInvalidateLogoutRequest ¶ added in v1.9.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.