Receive the authentication response of the SAML identity provider. If SAML_SUBJECT_ATTRIBUTE is set, this route logs in the person linked to the issuer and the subject of the assertion. The email finds the account at the first login only. If no person has this email, a new person is created.
POST
/auth/saml/sso
curl
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())