Reject OAuth 2.0 Login Request
PUT {{baseUrl}}/admin/oauth2/auth/requests/login/reject?login_challenge=<string>
When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it.
The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.
This endpoint tells Ory that the subject has not authenticated and includes a reason why the authentication was denied.
The response contains a redirect URL which the login provider should redirect the user-agent to.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
login_challenge | string | (Required) OAuth 2.0 Login Request Challenge |
Request Body
{"error"=>"<string>", "error_debug"=>"<string>", "error_description"=>"<string>", "error_hint"=>"<string>", "status_code"=>"<long>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"redirect_to":"\u003cstring\u003e"}