Finish OpenID Connect sign-in
POST
/auth/oidc/callback
const url = 'https://sylve.lan:8181/api/auth/oidc/callback';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","state":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://sylve.lan:8181/api/auth/oidc/callback \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "state": "example" }'Exchanges the provider’s code for a session, in the browser that started the sign-in
Request Body
Section titled “Request Body”Code and state from the provider
Media typeapplication/json
object
code
required
string
state
required
string
Examplegenerated
{ "code": "example", "state": "example"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
data
object
basicSettings
object
id
integer
initialized
boolean
pools
Array<string>
restarted
boolean
services
Array<string>
hostname
string
nodeId
string
token
string
error
string
message
string
status
string
Example
{ "data": { "basicSettings": { "services": [ "dhcp-server" ] } }}Bad Request
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Unauthorized
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Forbidden
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}Service Unavailable
Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{ "data": "example", "error": "example", "message": "example", "status": "example"}