OpenapiOauth
Handle OAuth callback from provider for a realm
GET
realmId*stringRealm ID
provider*stringOAuth provider type
code?stringAuthorization code from provider (absent when the user denied authorization)
state?stringState token for CSRF protection
error?stringProvider error code (e.g. access_denied) when authorization was denied
error_description?stringHuman-readable provider error description
OAuth login successful (or, with error=..., a friendly denial body)
application/json- response
agreements?array<>|nullconsentRequired?boolean|nullmessage*stringrestrictedSession?null|userId*stringaccessToken*stringexpiresIn*integerFormat
int64Range
0 <= valuerefreshExpiresIn*integerFormat
int64Range
0 <= valuerefreshToken*stringtokenType*stringcurl -X GET 'https://example.com/api/oauth/string/string/callback'Example Response
{
"agreements": [
{
"agreement_type": "string",
"effective_at": "2019-08-24T14:15:22Z",
"external_url": "string",
"mode": "full_text",
"summary": "string",
"title": "string",
"version_id": "9e94c502-ca41-4342-a7f7-af96b444512c",
"version_no": 0
}
],
"consentRequired": true,
"message": "string",
"restrictedSession": null,
"userId": "string"
}