oAuth2
List OAuth 2.0 Consent Sessions of a Subject
Changed onThis endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK.
get/admin/oauth2/auth/sessions/consent
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/admin/oauth2/auth/sessions/consent
- Authnone declared
Query parameters
page_sizeinteger
Items per Page
This is the number of items per page to return. For details on pagination please head over to the pagination documentation.
page_tokenstring
Next Page Token
The next page token. For details on pagination please head over to the pagination documentation.
subjectstring required
The subject to list the consent sessions for.
login_session_idstring
The login session id to list the consent sessions for.
Response
oAuth2ConsentSessions
Example response
[
{
"consent_request": {
"client": {
"scope": "scope1 scope-2 scope.3 scope:4"
}
}
}
]Changes
- info
added the new optional
queryrequest parameterlogin_session_id
- info
- warning
deleted the
queryrequest parameterlogin_session_id
- warning