Finish an org's SAML login
const url = 'http://localhost:8080/api/auth/saml/example/acs';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({RelayState: 'example', SAMLResponse: '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 http://localhost:8080/api/auth/saml/example/acs \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data RelayState=example \ --data SAMLResponse=exampleThe assertion consumer service (D-SA-10, D-SA-12). The identity provider posts the SAMLResponse form here, with the RelayState it received. The response is validated as D-SA-9 describes, and each login is single use. A failure redirects to /login?error=saml_invalid; a response the server does not accept, such as one with an encrypted assertion, redirects to /login?error=saml_unsupported. The route is exempt from the Origin check (D141): the pending login and its binder cookie are the check. The form is at most 256 KiB.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Org UUID.
Request Bodyrequired
Section titled “Request Bodyrequired”The form the identity provider posts to the SAML ACS (D-SA-10). Documentation only: the handler reads the form itself. The names are fixed by SAML, so they keep their case.
object
Example generated
RelayState=example&SAMLResponse=exampleResponses
Section titled “Responses”To the saved page, the start URL for an unsolicited response, or /login?error=.
The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The request body is larger than the limit.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}