Skip to main content

Class: OAuthPendingAuthorization

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:14

An /authorize request held while the user decides on an external consent screen, for createPendingConsentOnAuthorize. The screen reads it by id, never from its own URL. The approval columns are set once, on approval; the resumed /authorize consumes (deletes) the row.

Extends​

  • Model

Constructors​

Constructor​

new OAuthPendingAuthorization(values?, options?): OAuthPendingAuthorization

Defined in: node_modules/.pnpm/sequelize-typescript@2.1.6_@types+node@24.19.2_@types+validator@13.15.10_reflect-metada_6eeb99548fc2d3d000c45a883826c1e7/node_modules/sequelize-typescript/dist/model/model/model.d.ts:21

Parameters​

ParameterType
values?Optional<any, string>
options?BuildOptions

Returns​

OAuthPendingAuthorization

Inherited from​

Model.constructor

Properties​

approvedScopes​

approvedScopes: string[] | null

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:91

The scopes the user granted; null until approval.


approvedSubject​

approvedSubject: string | null

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:84

The subject who approved; null until approval.


clientId​

clientId: string

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:28

The requesting client_id.


codeChallenge​

codeChallenge: string

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:56

The PKCE code_challenge.


codeChallengeMethod​

codeChallengeMethod: string

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:63

The PKCE challenge method.


expiresAt​

expiresAt: Date

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:77

Instant after which the request is no longer usable.


id​

id: string

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:21

Opaque, unguessable id handed to the consent screen.

Overrides​

Model.id


redirectUri​

redirectUri: string

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:35

The redirect_uri, already checked against the client's registration.


resource​

resource: string | null

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:70

The RFC 8707 resource, when the client sent one.


resumeSecretHash​

resumeSecretHash: string | null

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:98

SHA-256 (hex) of the approver's one-time resume secret.


scopes​

scopes: string[]

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:42

The requested scopes.


state​

state: string | null

Defined in: packages/auth-postgresdb/src/models/OAuthPendingAuthorization.ts:49

The client's state.