Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

AddSAMLProvider

Add a new SAML identity provider in the organization

POST
/management/v1/idps/saml

Request Body

application/json
  1. body
name?name
binding?binding

Binding which defines the type of communication with the identity provider.

Value in"SAML_BINDING_UNSPECIFIED""SAML_BINDING_POST""SAML_BINDING_REDIRECT""SAML_BINDING_ARTIFACT"
withSignedRequest?with_signed_request

Boolean which defines if the authentication requests are signed.

providerOptions?
nameIdFormat?|

Optionally specify the nameid-format requested.

transientMappingAttributeName?|

Optionally specify the name of the attribute, which will be used to map the user in case the nameid-format returned is urn:oasis:names:tc:SAML:2.0:nameid-format:transient.

federatedLogoutEnabled?|

Optionally enable federated logout. If enabled, Zitadel will send a logout request to the identity provider, if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata.

signatureAlgorithm?signature_algorithm

Specify a Signature Algorithm that should be used to sign SAML requests and responses. Can be used only if the with_signed_request option is set to true.

Value in"SAML_SIGNATURE_UNSPECIFIED""SAML_SIGNATURE_RSA_SHA1""SAML_SIGNATURE_RSA_SHA256""SAML_SIGNATURE_RSA_SHA512"
metadataUrl*metadata_url

Url to the metadata of the SAML identity provider.

Response Body

Success

application/json
  1. response
details?
id?id
Example Request
curl -X POST 'https://example.com/management/v1/idps/saml' \  -H 'Content-Type: application/json' \  -d '{  "metadataUrl": "string"}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  },  "id": "string"}

Was this page helpful?