Skip to content

Authorize an application to sign a member in

GET
/api/v1/oidc/authorize
curl --request GET \
--url 'https://gpu-kitchen.example.lan/api/v1/oidc/authorize?client_id=example&code_challenge_method=S256&redirect_uri=example&response_type=code&scope=example'

The OAuth 2.0 authorization endpoint (code flow, PKCE S256). An unknown client or redirect URI is refused here; any other refusal goes back to the application as error and error_description query parameters.

client_id
required
string
code_challenge
string
code_challenge_method
string
Allowed value: S256
nonce
string
prompt
string
redirect_uri
required
string
response_type
required
string
Allowed value: code
scope
required
string
state
string

To the application with a code, to the sign-in page without a session, or back with an error.

Error codes: oidc_redirect_uri_mismatch, oidc_unknown_client.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: oidc_provider_unavailable.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}