Properties
| NAME | TYPE | DESCRIPTION |
$id | string | Consent ID. |
$createdAt | string | Consent creation time in ISO 8601 format. |
$updatedAt | string | Consent update date in ISO 8601 format. |
userId | string | ID of the user the consent belongs to. |
appId | string | ID of the registered app the consent was given to. Empty for URL-form (CIMD) clients. |
cimdUrl | string | Client ID metadata document URL of the client the consent was given to. Empty for registered apps. |
scopes | array | OAuth2 scopes the user consented to. |
resources | array | RFC 8707 resource indicators the user consented to. |
authorizationDetails | string | Authorization details the user consented to, as a JSON string. Each entry has a |
expire | string | Consent expiration time in ISO 8601 format. Empty when the consent has no token-bound expiry yet. |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"userId": "5e5ea5c16897e",
"appId": "5e5ea5c16897e",
"cimdUrl": "https://example.com/.well-known/client-metadata.json",
"scopes": [
"openid",
"email",
"profile"
],
"resources": [
"https://api.example.com/"
],
"authorizationDetails": "[{\"type\":\"calendar\",\"identifier\":\"primary\",\"actions\":[\"read_events\",\"create_event\"]}]",
"expire": "2020-10-15T06:38:00.000+00:00"
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"userId": "5e5ea5c16897e",
"appId": "5e5ea5c16897e",
"cimdUrl": "https://example.com/.well-known/client-metadata.json",
"scopes": [
"openid",
"email",
"profile"
],
"resources": [
"https://api.example.com/"
],
"authorizationDetails": "[{\"type\":\"calendar\",\"identifier\":\"primary\",\"actions\":[\"read_events\",\"create_event\"]}]",
"expire": "2020-10-15T06:38:00.000+00:00"
}