Skip to main content

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​

ConsentGrant.clientId


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​

ConsentGrant.dateCreated

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​

ConsentGrant.dateModified

Inherited from​

BaseMongoEntity.dateModified


grantedAt​

grantedAt: Date

Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:58

When consent was first granted.

Implementation of​

ConsentGrant.grantedAt


lastUsedAt?​

optional lastUsedAt?: Date

Defined in: auth/src/models/mongo/ConsentGrantMongo.ts:62

When this grant was last relied upon to skip the consent screen.

Implementation of​

ConsentGrant.lastUsedAt


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​

ConsentGrant.scope


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​

ConsentGrant.uid

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​

ConsentGrant.userUid


version​

version: number

Defined in: auth/node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.

Implementation of​

ConsentGrant.version

Inherited from​

BaseMongoEntity.version