Handle SAML authentication request (POST binding)
Process SAML authentication request using HTTP POST binding.
Path parameters
-
The ID of the SAML application.
application/json
Body Required
-
Minimum length is
1
. -
RelayState string
Body Required
-
Base64-encoded SAML request message.
-
RelayState string
Optional state parameter to be returned in the response.
POST
/api/saml/{id}/authn
cURL (application/json)
curl \
--request POST https://[tenant_id].logto.app/api/saml/{id}/authn \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"SAMLRequest":"string","RelayState":"string"}'
curl \
--request POST https://[tenant_id].logto.app/api/saml/{id}/authn \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'SAMLRequest=string&RelayState=string'
Request examples
{
"SAMLRequest": "string",
"RelayState": "string"
}