Enterprise SAML Connection, IdP Initiated SSO via API

Hello Auth0 friends,

We have automated basically everything that has to do with setting up a connection and an application, however, I am still having trouble setting the parameters of the IdP Initiated SSO to Accept Requests and fill the necessary parameters via API.

Can you maybe point me in the right direction? What kind of API do I need to use to set this up. It’s the last piece in my puzzle, I appreciate your help.

Is it doable? I tried using below on a “Update Connection” API but no luck -

{
“options”: {
“idp_initiated”: {
“sso_enabled”: true,
“default_app”: “{client_id}”,
“response_protocol”: “openid-connect”
// Optional: You can also include a specific query string configuration if needed
// “query_string”: “redirect_uri=https%3A%2F%2Fyour-app-callback-url.com%2F%3Fconnection%3Dyour-connection-name”
}
}
}

Can someone provide a solution or point me to the documentation if any.

Hi @vtangudu

This should be possible via the Management API using this example payload:

{
"options": {
"signInEndpoint": "yourIdpSignInUrl",
"idpinitiated": {
"client_id": "yourClientId",
"client_protocol": "saml",
"client_authorizequery": ""
},
"signingCert": "[copied-from-GET]"
}

This is mentioned in our documentation here.

If you have any other questions, let me know!

Kind Regards,
Nik

1 Like