Class: ConsentGrantMongo
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:45
Implementation of the ConsentGrant interface for storage in a MongoDB database. If SQL is desired,
please use models.sql.ConsentGrantSQL instead.
Extends
BaseMongoEntity
Implements
Constructors
Constructor
new ConsentGrantMongo(
other?):ConsentGrantMongo
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:64
Parameters
other?
Partial<ConsentGrantMongo>
Returns
ConsentGrantMongo
Overrides
BaseMongoEntity.constructor
Properties
_id?
optional_id?:any
Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseMongoEntity.d.ts:11
The internal unique identifier used by MongoDB.
Inherited from
BaseMongoEntity._id
clientId
clientId:
string=""
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:52
The uid of the Client consent was granted to.
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
BaseMongoEntity.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
Inherited from
BaseMongoEntity.dateModified
grantedAt
grantedAt:
Date
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:58
When consent was first granted.
Implementation of
lastUsedAt?
optionallastUsedAt?:Date
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:62
When this grant was last relied upon to skip the consent screen.
Implementation of
scope
scope:
string=""
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:55
The space-delimited, cumulative set of scopes approved across every consent decision so far.
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
BaseMongoEntity.uid
userUid
userUid:
string=""
Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:48
The uid of the User who granted consent.
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
BaseMongoEntity.version