Skip to content
Dashboard
Theme
Theme

Preview the catalog mapping of an IdP payload

POST /v1/attribute_catalogue/preview: Preview the catalog mapping of an IdP payload.

View Markdown

POST /v1/attribute_catalogue/preview

Maps a sample IdP payload (SAML attributes or OIDC claims) to the attribute catalog exactly as a sign-in would, with the same bounds. Nothing is stored or logged; the payload is only echoed back as the mapped result.

Scope
environment:read
Auth
Secret key (sk_…)
Since
1.0
  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • protocol string Required

    one of saml, oidc

  • attributes object

  • claims object

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/attribute_catalogue/preview" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"protocol": "saml"
}'
Response 200
{
"object": "attribute_preview",
"first_name": "Jane",
"last_name": "Doe",
"groups": [
"Engineering"
],
"attributes": {},
"unmapped": [
"example_unmapped"
]
}