Preview SAML metadata import.
POST
/api/admin/saml-metadata/preview
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/saml-metadata/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "metadataUrl": "https://federation.example.com/aggregate-metadata.xml" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”The JSON request body is limited to 12 MiB; inline aggregate XML is limited to 10 MiB.
Media type application/json
object
metadataXml
string
metadataUrl
string format: uri
samlProfile
string
attributePresetId
string
Example
{ "metadataUrl": "https://federation.example.com/aggregate-metadata.xml"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
One of:
object
kind
required
string
providerType
required
string
config
required
object
entityId
string
ssoUrl
string format: uri
acsUrl
string format: uri
certificate
string
metadataUrl
string format: uri
metadataXml
string
metadataRefreshPolicy
object
mode
required
URL-backed providers default to automatic when this property is omitted.
string
intervalSeconds
required
integer
nextRefreshAt
integer format: int64
lastAttemptAt
integer format: int64
lastSuccessAt
integer format: int64
consecutiveFailures
integer
sourceState
string
lastErrorCode
string
suspendedByMetadataSync
True when metadata lifecycle automation disabled the provider.
boolean
key
additional properties
nameIdFormat
string
metadataNameIdFormats
Array<string>
identityMapping
object
fieldMappingSetId
required
string
fieldMappingVersionId
string
destinationNamespace
string
destinationFieldPolicies
Per-SP release mode for every attribute in the active SAML Destination Profile.
object
key
additional properties
string
key
additional properties
attributeReleaseConsent
object
enabled
boolean
mode
string
key
additional properties
key
additional properties
object
kind
required
string
previewId
required
string
metadataUrl
string format: uri
entityCount
required
integer
expiresAt
required
integer
verification
required
object
key
additional properties
Example
{ "kind": "single", "providerType": "saml_idp", "config": { "entityId": "https://idp.example.com/metadata", "ssoUrl": "https://idp.example.com/sso", "metadataHash": "sha256:..." }}