Olympus Docs
ReferenceAPIsOry Hydra APIoAuth2

Accept OAuth 2.0 Login Request

When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider

PUT /admin/oauth2/auth/requests/login/accept

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 successfully authenticated and includes additional information such as the subject's ID and if Ory should remember the subject's subject agent for future authentication attempts by setting a cookie.

The response contains a redirect URL which the login provider should redirect the user-agent to.

Operation ID: acceptOAuth2LoginRequest    Tag: oAuth2

Query parameters

NameTypeRequiredDescription
login_challengestringyesOAuth 2.0 Login Request Challenge

Request body

Content-Type: application/json

Type: object

Schema: acceptOAuth2LoginRequest, see the Ory Hydra API schemas reference for the full type.

Responses

StatusDescriptionBody
200oAuth2RedirectToapplication/json, object
defaulterrorOAuth2application/json, object

Generated from ../athena/openapi.json at build time.

On this page