This is currently meant only for testing Mautic's auth plugins.
- Copy MauticSSOBundle into
/plugins
of Mautic. - Delete the cache
/app/cache/dev
- Browse to
/s/plugins
and click theInstall/Upgrade Plugins
button - Configure a SSO provider (note the callback url for the SSO Provider Setup
- Register a new application
- Use the client ID and secret when configuring the plugin's integration
- Login to Google's developer console
- Browse to APIs & Auth -> Credentials
- Click
Add Credentials
thenOAuth 2.0 Client ID
- Configure the credentials
- Use the client ID and secret when configuring the plugin's integration
For demonstration of authorizing a login via the form, add the following to /app/config/local.php
and fill in the details. Note that the password must be encrypted with bcrypt (easiest way is to copy in a password from Mautic's users table).
'authorized_users' => array(
'custom_username' => array(
'firstname' => '',
'lastname' => '',
'password' => '',
'email' => ''
)
)
Delete the cache then try to login with the above. The user will be created in Mautic's Users table and given role ID#1.