Skip to main content

Callback from a strategy

Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.

Request Body required
    strategy_name strategy_name will not be set for oidc but can be utilized for methods like email magic links
    state for oidc & magic links
    code string
    state_options object
Responses

A successful response.


Schema

    object

POST /v1beta1/auth/callback

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
Body required
{
"strategy_name": "string",
"state": "string",
"code": "string",
"state_options": {}
}
curl / cURL
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"strategy_name": "string",
"state": "string",
"code": "string",
"state_options": {}
}'