Return from an OpenID Connect provider
GET
/api/v1/auth/oidc/{providerId}/callback
const url = 'https://gpu-kitchen.example.lan/api/v1/auth/oidc/1/callback';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gpu-kitchen.example.lan/api/v1/auth/oidc/1/callbackParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”providerId
required
integer
Query Parameters
Section titled “Query Parameters”code
string
error
string
state
string
Responses
Section titled “Responses”Back to the sign-in page: /login?error=<code> on a refusal, the requested page otherwise.
Error codes: provider_not_found.
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" }}