Reject OAuth2 Login Request
PUT
/appid-{appId}/recipe/oauth/auth/requests/login/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.
Query parameters
loginChallengestringrequiredHeader parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonerrorstringerrorDebugstringerrorDescriptionstringerrorHintstringstatusCodeintegerResponses
200OAuth2 Login Result
One of:
object
statusstatusOKAllowed:
OKredirectTostringoauthError
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/login/reject?loginChallenge=1234567890" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"error": "string",
"errorDebug": "string",
"errorDescription": "string",
"errorHint": "string",
"statusCode": 0
}'const response = await fetch("/appid-{appId}/recipe/oauth/auth/requests/login/reject?loginChallenge=1234567890", {
method: "PUT",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"error": "string",
"errorDebug": "string",
"errorDescription": "string",
"errorHint": "string",
"statusCode": 0
})
});import requests
response = requests.put(
"/appid-{appId}/recipe/oauth/auth/requests/login/reject?loginChallenge=1234567890",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"error": "string",
"errorDebug": "string",
"errorDescription": "string",
"errorHint": "string",
"statusCode": 0
},
)Response
{
"status": "OK",
"redirectTo": "{apiDomain}/oauth/login?..."
}"string""Invalid API key""License Error""Not Found""Internal Error"