Enabling SAML Plugin Through Management API

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