Mautic uses basic authentication for Users, however there is the ability to integrate with a SAML SSO - Single Sign-On - provider.

SAML Single Sign On

SAML is a single sign on protocol that allows single sign on and User creation in Mautic using a third party User source called an identity provider (IDP).

Turning on SAML

To turn on SAML support in Mautic, you first need the IDP’s metadata XML which they provide. If it’s a URL, browse to the URL then save the content into an XML file.

  1. Click the settings wheel in the top right corner to open the Settings menu.

  2. Navigate to Configuration > User/Authentication Settings.

Screenshot of SAML SSO Settings
  1. Upload this file as the Identity Provider Metadata file.

  2. It’s recommended to create a non-Admin Role as the default Role for created Users. Select this Role in the ‘Default Role for created Users’ dropdown. For more information, see Users and Roles.

Screenshot of the User Role Permission

Configuring the IDP

The IDP may ask for the following settings:

  1. Entity ID - this is site URL, displayed at the top of User/Authentication Settings. Copy this exactly ‘as is’ to the IDP.

  2. Service Provider Metadata - if the provider requires a URL, use To use as a file rather than a URL, browse to that URL and save the content as an XML file.

  3. Assertion Consumer Service - Use

  4. Issuer - this should come from the IDP but is often configurable. If it’s a URL, be sure that the scheme - http:// and https:// - aren’t part of it.

  5. Verify request signatures or a SSL certificate - If the IDP supports encrypting and validating request signatures from Mautic to the IDP, generate a self signed SSL certificate. Upload the certificate and private key through Mautic’s Configuration > User/Authentication Settings under the ‘Use a custom X.509 certificate and private key to secure communication between Mautic and the IDP’ section. Then upload the certificate to the IDP.

  6. Custom attributes - Mautic requires three custom attributes in the IDP responses for the User Email, first name and last name. Username is also supported but is optional. Configure the attribute names used by the IDP in Mautic’s Configuration > User/Authentication Settings under the ‘Enter the names of the attributes the configured IDP uses for the following Mautic User fields’ section.

Example - Azure SAML SSO

  1. Register new Enterprise applications by navigating to Create your own Application and then Integrate any other application you don't find in the gallery (Non-gallery)

  2. Go to Single Sign-On

  3. Identifier (Entity ID) - this is the site URL located at the top of User/Authentication Settings. Copy this exactly as is to the IDP.

  4. Reply URL (Assertion Consumer Service URL) - Use

  5. Download Federation Metadata XML from 3. SAML Certificates

  6. Upload the downloaded Federation Metadata XML to Mautic

  7. X.509-Certificate isn’t required

  8. Use the following for the custom attributes fields:

E-Mail: First Name: Last Name: Username (optional):

Logging in

Once configured with the IDP and the IDP with Mautic, Mautic redirects all logins to the IDP’s login. /s/login is still available for direct logins but you have to access it directly.

Login to the IDP, which then redirects you back to Mautic. If the exchange is successful Mautic creates a User if it doesn’t already exist, and logs the User into the system.

Turning off SAML

To turn off SAML, click the Remove link to the right of the Identity provider metadata file label.

Screenshot of the authentication settings section