A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/saml/providers

注册一个新的SAML身份提供商配置

SAML Admin `bearerAuth` application/json

Request Body

Schema: dto.SamlProviderRequest

FieldTypeRequiredExampleConstraintsDescription
certificate string Yes -----BEGIN CERTIFICATE----- MIID -----END CERTIFICATE-----
entity_id string Yes https://login.microsoftonline.com/example/saml2
name string Yes Azure AD
sso_url string Yes https://login.microsoftonline.com/example/saml2
allow_idp_initiated boolean No False
certificate_backup string No -----BEGIN CERTIFICATE----- MIID -----END CERTIFICATE-----
default_redirect_uri string No https://app.example.com
enabled boolean No True
force_authn boolean No False
name_id_format string No urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
should_clear_backup boolean No False
slo_url string No https://login.microsoftonline.com/example/saml2/slo
want_authn_signed boolean No True

Responses

StatusDescriptionSchema
200OKdto.SamlProviderItemDetailResponse

Referenced Schemas

dto.SamlProviderItem

FieldTypeRequiredExampleConstraintsDescription
allow_idp_initiated boolean No False
certificate_expiry string No
created_at string No 2026-05-31T10:00:00Z
default_redirect_uri string No https://app.example.com
enabled boolean No True
entity_id string No https://login.microsoftonline.com/example/saml2
force_authn boolean No False
has_backup_cert boolean No False
id string No 01JNXXXXX...
name string No Azure AD
name_id_format string No urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
slo_url string No https://login.microsoftonline.com/example/saml2/slo
sso_url string No https://login.microsoftonline.com/example/saml2
tenant_id string No 01JNYYYYY...
updated_at string No 2026-05-31T10:00:00Z
want_authn_signed boolean No True

dto.SamlProviderItemDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.SamlProviderItem No
message string No
timestamp string No