Receive a SAML provider's sign-in answer
POST
/api/v1/auth/saml/{providerId}/acs
const url = 'https://gpu-kitchen.example.lan/api/v1/auth/saml/1/acs';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({SAMLResponse: 'example', RelayState: '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://gpu-kitchen.example.lan/api/v1/auth/saml/1/acs \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data SAMLResponse=example \ --data RelayState=exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”providerId
required
integer
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
SAMLResponse
required
string
RelayState
string
Examplegenerated
SAMLResponse=example&RelayState=exampleResponses
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" }}Error codes: payload_too_large.
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" }}