Enabling SAML Plugin Through Management API

Looking to enable the SAML2 Web APP plugin through the Management API. Wondering if there is a parameter I can pass during client creation. /api/v2/clients

I do not see one in the documentation…

Hi Mike,

You can use the patch client by ID endpoint with the following:

{
    "addons": {
        "samlp": {
            "audience": "urn:foo",
            // all other key/value pairs that are present in the Settings input in the add-on form.
        }
    }
}

The callback URL will always be the first callback URL in the Allowed callback URLs field, so if necessary you can also patch the callback attribute, e.g.:

{
    "callbacks": [
        "https://localhost/callback"
    ]
}
2 Likes

Thanks a lot for sharing that with the rest of community @richard.dowinton!