Gamma API
AuthenticationSingle sign-on

SAML assertion consumer (POST)

POST
/api/auth/sso/saml2/sp/acs/{providerId}

Handles SAML responses from IdP after successful authentication. Supports GET for post-auth redirects and POST for SAML response processing.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

providerId*string

Request Body

application/json
  1. body
SAMLResponse*string
RelayState?string

Response Body

Redirects after authentication (success or error with query params)

Example Request
curl -X POST 'http://localhost:3000/api/auth/sso/saml2/sp/acs/string' \  -H 'Content-Type: application/json' \  -d '{  "SAMLResponse": "string"}'
Example Response
Empty