Start the OIDC login flow
GET
/auth/login
const url = 'https://example.com/auth/login?return_to=%2Fapprove%2F9f1c0b2a-...';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/login?return_to=%2Fapprove%2F9f1c0b2a-...'Redirects the browser to the identity provider. return_to is validated
as a same-site, path-only relative URL; anything else is ignored rather
than followed.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”return_to
string
Where to land after login
Example
/approve/9f1c0b2a-...Responses
Section titled “Responses”Redirect to the identity provider
Media typeapplication/json
string
Example generated
example