bitmotion/mautic-auth0-bundle

This package is abandoned and no longer maintained. The author suggests using the leuchtfeuer/mautic-auth0-bundle package instead.

Auth0 is the solution you need for web, mobile, IoT, and internal applications. Loved by developers and trusted by enterprises.

v2.0.0 2024-02-07 09:21 UTC

README

Auth0Mautic

Latest Stable Version Build Status Total Downloads Latest Unstable Version Code Climate License

This Mautic plugin allows logins and sign ups via Auth0.

Installation

  1. Open a Terminal / Console window
  2. Change directory to the mautic root (i.e. cd /var/www/mautic)
  3. Clone this repository into plugins/LeuchtfeuerAuth0Bundle (git clone https://github.com/Leuchtfeuer/auth0-for-mautic.git plugins/LeuchtfeuerAuth0Bundle)
  4. Clear the cache (php bin/console cache:clear)
  5. Go to Settings -> Plugins and click on "Install/Upgrade Plugins"
  6. Choose the Auth0 Plugin, adapt the configuration and publish it

There is also the possibility to add this package directly into your project composer.json file by executing following command: composer require leuchtfeuer/mautic-auth0-bundle.

We are currently supporting following Mautic versions:

Plugin Configuration

Configuration

You can configure the mapping (Auth0 data -> Mautic User data) in the configuration module. There are several options:

Use dot syntax to access arrays (i.e. user_metadata.login_name).

Roles

If you want to map a role from Auth0 to your Mautic-User you have to alter your app_metadata in your Auth0-User (where <ROLE_ID> is the ID of your Mautic-Role):

{
    ...
    "mautic": {
        "role": <ROLE_ID>
    }
}

Update from Mautic 2.x.x to Mautic 3.x.x

When updating the plugin, please make sure to change the callback URL from ../s/sso_login/Auth0Auth to ../s/sso_login/Auth0 in your Auth0 application settings.

Update from Mautic 4.x.x to Mautic 5.x.x

When updating the plugin, please make sure to change the callback URL from ../s/sso_login/Auth0 to ../s/sso_login/LeuchtfeuerAuth0 in your Auth0 application settings.

Author

Leuchtfeuer Digital Marketing GmbH

mautic@Leuchtfeuer.com