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.
Query Parameters
strategy_name will not be set for oidc but can be utilized for methods like email magic links
for oidc & magic links
state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
object
{}
Bad Request - The request was malformed or contained invalid parameters.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
GET /v1beta1/auth/callback
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'
curl -L -X GET 'http://127.0.0.1:7400/v1beta1/auth/callback' \
-H 'Accept: application/json'