OIDC callback
GET
/auth/callback
const url = 'https://example.com/auth/callback?code=example&state=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/auth/callback?code=example&state=example'Checks state against the value stored at login, exchanges the code,
establishes the session, and redirects to the captured return_to (or
/). A failure redirects to /login?error=<reason> (expired,
refused, session or failed), or for a claims echo to
/admin/identity/echo?error=<reason> (/identity/echo for a
bootstrap echo), with the error itself in the fragment.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”code
required
string
Authorization code from the identity provider
state
required
string
CSRF state value stored at login
Responses
Section titled “Responses”Redirect back into the app, or to the page that explains a failure
Media typeapplication/json
string
Example generated
example