Authenticate with a strategy
Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
Path Parameters
Name of the strategy to use for authentication.
Example: google
Request Body required
If set to true, location header will be set for redirect to start auth flow
URL to redirect after successful authentication.
Example:"https://frontier.example.com"
Email of the user to authenticate. Used for magic links.
Example:example@acme.org
Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
Example:https://frontier.example.com/v1beta1/auth/callback
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
{
"endpoint": "string",
"state": "string",
"state_options": {}
}
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"
}
]
}
POST /v1beta1/auth/register/:strategy_name
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/auth/register/:strategy_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"redirect_onstart": true,
"return_to": "string",
"email": "string",
"callback_url": "string"
}'