Return from the SAML identity provider
POST
/api/auth/saml/{slug}/acs
const url = 'https://forge.example.com/api/auth/saml/example/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://forge.example.com/api/auth/saml/example/acs \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data SAMLResponse=example \ --data RelayState=exampleThe reply (assertion consumer service) address, where the identity provider posts its signed answer. Only an answer to a request this browser started is taken. Not a call for scripts.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
SAMLResponse
string
RelayState
string
Example generated
SAMLResponse=example&RelayState=exampleResponses
Section titled “Responses”Redirects the browser.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}