POST /auth/saml/sso

Handle SAML SSO login response. Processes authentication response from SAML identity provider and creates a new user if they don't exist.

Responses

  • 302

    Login successful, redirect to home page

  • 400

    SAML not enabled or wrong parameter

POST /auth/saml/sso
curl -X POST "http://api.example.com/auth/saml/sso" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
import requests

url = "http://api.example.com/auth/saml/sso"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
params = {}
payload = None

response = requests.post(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
curl \
 --request POST 'http://api.example.com/auth/saml/sso' \
 --header "Authorization: $API_KEY"