Reject OAuth2 Logout Request
PUT
/appid-{appId}/recipe/oauth/auth/requests/logout/rejectAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonchallengestringResponses
200OAuth2 Logout Result
One of:
object
statusstatusOKAllowed:
OKoauthError
statusstringrequiredAllowed:
OAUTH_ERRORerrorstringrequirederrorDescriptionstringrequiredstatusCodeintegerrequired400error code 400
string401error code 401
string402error code 402
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT "/appid-{appId}/recipe/oauth/auth/requests/logout/reject" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"challenge": "string"
}'const response = await fetch("/appid-{appId}/recipe/oauth/auth/requests/logout/reject", {
method: "PUT",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"challenge": "string"
})
});import requests
response = requests.put(
"/appid-{appId}/recipe/oauth/auth/requests/logout/reject",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"challenge": "string"
},
)Response
{
"status": "OK"
}"string""Invalid API key""License Error""Not Found""Internal Error"