Finalize a SAML Request and get the response.
POSThttps://$CUSTOM-DOMAIN/v2/saml/saml_requests/:samlRequestId
Finalize a SAML Request and get the response definition for success or failure. The response must be handled as per the SAML definition to inform the application about the success or failure. On success, the response contains details for the application to obtain the SAMLResponse. This method can only be called once for an SAML request.
Request​
Path Parameters
ID of the SAML Request.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
session
object
error
object
Body
required
session
object
error
object
Body
required
session
object
error
object
Responses​
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
URL including the Assertion Consumer Service where the user should be redirected or has to call per POST, depending on the binding. Contains details for the application to obtain the response on success, or error details on failure. Note that this field must be treated as credentials, as the contained SAMLResponse or code can be used on behalve of the user.
Set if the binding is Redirect-Binding, where the user can directly be redirected to the application, using a "302 FOUND" status to the URL.
post
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T17:50:43.863Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T17:50:43.863Z"
},
"url": "https://client.example.org/cb",
"redirect": {},
"post": {
"relayState": "string",
"samlResponse": "string"
}
}
- Schema
- Example (from schema)
Schema
details
object
URL including the Assertion Consumer Service where the user should be redirected or has to call per POST, depending on the binding. Contains details for the application to obtain the response on success, or error details on failure. Note that this field must be treated as credentials, as the contained SAMLResponse or code can be used on behalve of the user.
Set if the binding is Redirect-Binding, where the user can directly be redirected to the application, using a "302 FOUND" status to the URL.
post
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T17:50:43.863Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T17:50:43.863Z"
},
"url": "https://client.example.org/cb",
"redirect": {},
"post": {
"relayState": "string",
"samlResponse": "string"
}
}
- Schema
- Example (from schema)
Schema
details
object
URL including the Assertion Consumer Service where the user should be redirected or has to call per POST, depending on the binding. Contains details for the application to obtain the response on success, or error details on failure. Note that this field must be treated as credentials, as the contained SAMLResponse or code can be used on behalve of the user.
Set if the binding is Redirect-Binding, where the user can directly be redirected to the application, using a "302 FOUND" status to the URL.
post
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-25T17:50:43.863Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-25T17:50:43.863Z"
},
"url": "https://client.example.org/cb",
"redirect": {},
"post": {
"relayState": "string",
"samlResponse": "string"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/v2/saml/saml_requests/:samlRequestId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"session": {
"sessionId": "163840776835432705",
"sessionToken": "string"
},
"error": {
"error": "ERROR_REASON_UNSPECIFIED",
"errorDescription": "string"
}
}'