Class: AuthorizationCodeSQL
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:39
Implementation of the AuthorizationCode interface for storage in a SQL database. If MongoDB is desired,
please use models.mongo.AuthorizationCodeMongo instead.
Extends
BaseEntity
Implements
Constructors
Constructor
new AuthorizationCodeSQL(
other?):AuthorizationCodeSQL
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:77
Parameters
other?
Partial<AuthorizationCodeSQL>
Returns
AuthorizationCodeSQL
Overrides
BaseEntity.constructor
Properties
clientId
clientId:
string=""
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:47
The uid of the Client this code was issued to.
Implementation of
codeChallenge?
optionalcodeChallenge?:string
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:61
The RFC 7636 PKCE code challenge, if the client used PKCE.
Implementation of
AuthorizationCode.codeChallenge
codeChallengeMethod?
optionalcodeChallengeMethod?:"S256"|"plain"
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:65
The method used to derive codeChallenge from the client's code_verifier.
Implementation of
AuthorizationCode.codeChallengeMethod
codeHash
codeHash:
string=""
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:43
The SHA-256 hex digest of the opaque code. The raw code itself is never persisted.
Implementation of
dateCreated
dateCreated:
Date
Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:18
The date and time that the entity was created.
Implementation of
Inherited from
BaseEntity.dateCreated
dateModified
dateModified:
Date
Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:22
The date and time that the entity was last modified.
Implementation of
AuthorizationCode.dateModified
Inherited from
BaseEntity.dateModified
expiresAt
expiresAt:
Date
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:72
When this code expires — typically ~60 seconds after issuance.
Implementation of
nonce?
optionalnonce?:string
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:69
The OIDC nonce to carry into the id_token, if the client requested the openid scope.
Implementation of
redirectUri
redirectUri:
string=""
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:54
The exact redirect_uri presented at /authorize — must match exactly again at /token.
Implementation of
scope
scope:
string=""
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:57
The space-delimited set of scopes granted.
Implementation of
uid
uid:
string
Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:14
The universally unique identifier of the entity.
Implementation of
Inherited from
BaseEntity.uid
used
used:
boolean=false
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:75
Set to true once this code has been redeemed at /token. A second presentation of an
already-used code is treated as a replay/leak: see BaseOAuthTokenRoute.
Implementation of
userUid
userUid:
string=""
Defined in: auth/src/models/sql/AuthorizationCodeSQL.ts:51
The uid of the User (resource owner) who authorized this code.
Implementation of
version
version:
number
Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26
The optimistic lock version.
Implementation of
Inherited from
BaseEntity.version