Return from the identity provider
GET
/auth/callback
const url = 'https://example.com/auth/callback';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/callbackThe redirect URI registered at the identity provider. Exchanges the code, checks the ID token and the roles, and starts a session: the session cookie is set and the browser returns to where the login started. Only in the browser that started the login. For a bl login nothing is approved here: the browser gets a cookie for the confirmation page /cli/confirm instead of a session.
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”code
string
state
string
error
string
error_description
string
Responses
Section titled “Responses”Back into the UI with the session cookie, or to /login with an error.