Skip to content

Begin a provider sign-in

POST
/api/v1/auth/{provider}/login
curl --request POST \
--url http://127.0.0.1:8080/api/v1/auth/example/login \
--header 'Content-Type: application/json' \
--header 'Origin: example' \
--data '{ "invitation_token": "example", "link": true, "login": "example", "password": "example" }'

Available only when account authentication is enabled. Provider configuration is restart-bound. Local logout does not require an external provider. Responses must not be cached.

provider
required
string
Origin
required
string
X-CSRF-Token
string

Required when explicitly linking to the current account.

Media typeapplication/json
object
invitation_token
string
link

Requires a current browser session and CSRF proof; callback rechecks that session.

boolean
login
string
password
string
Examplegenerated
{
"invitation_token": "example",
"link": true,
"login": "example",
"password": "example"
}

OIDC, SAML and managed providers return the authorization_url to navigate to. LDAP and trusted-proxy providers sign in directly and return the new session.

Media typeapplication/json
One of:
object
authorization_url
required

Where to send the browser to continue with an OIDC, SAML or managed provider.

string format: uri
Examplegenerated
{
"authorization_url": "https://example.com"
}

Structured authentication boundary failure

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Structured authentication boundary failure

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Structured authentication boundary failure

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Structured authentication boundary failure

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Structured authentication boundary failure

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}