v51

latestSwagger 2.0raw.githubusercontent.com2026-08-015253175.3 KB
oAuth2

OAuth 2.0 Authorize Endpoint

Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/

This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.

get/oauth2/auth

Response

errorOAuth2

errorstring

Error

error_debugstring

Error Debug Information

Only available in dev mode.

error_descriptionstring

Error Description

error_hintstring

Error Hint

Helps the user identify the error cause.

status_codeinteger

HTTP Status Code

Example response

{
  "error_hint": "The redirect URL is not allowed.",
  "status_code": 401
}