Skip to main content

ConsentRequest

@webda/oauth


Interface: ConsentRequest

Defined in: packages/oauth/src/oauthserver.service.ts:152

Consent request shown to the user

Properties​

client​

client: object

Defined in: packages/oauth/src/oauthserver.service.ts:156

Requesting client

host?​

optional host?: string

id​

id: string

optional logo?: string

name​

name: string

uri?​

optional uri?: string

verified​

verified: boolean


csrf​

csrf: string

Defined in: packages/oauth/src/oauthserver.service.ts:176

CSRF token to send back with the decision


flow​

flow: "code" | "device"

Defined in: packages/oauth/src/oauthserver.service.ts:154

Authorization code or device flow


hostname?​

optional hostname?: string

Defined in: packages/oauth/src/oauthserver.service.ts:160

Hostname of the device requesting access


offlineAccess​

offlineAccess: boolean

Defined in: packages/oauth/src/oauthserver.service.ts:172

A refresh token is requested


operations​

operations: object[]

Defined in: packages/oauth/src/oauthserver.service.ts:167

Requested operations the user can call, by first segment

group​

group: string

ids​

ids: object[]


rememberable​

rememberable: boolean

Defined in: packages/oauth/src/oauthserver.service.ts:174

The decision can be remembered


resources​

resources: string[]

Defined in: packages/oauth/src/oauthserver.service.ts:165

Protected resources (absolute URIs) the tokens may be issued for: the one they are bound to first, then the others the family may mint tokens for; empty for the application audience only


user​

user: object

Defined in: packages/oauth/src/oauthserver.service.ts:158

Signed-in user

id​

id: string

name?​

optional name?: string