Appearance
How it works
As already know the SSO module will allow users to login on your site via a social provider. Below a couple of cases how the module will handle the login and what it will do.
The Login process
- The user clicks on of the social provider that are enabled provided by
{exp:reinos_sso:login_links} - The user will redirect to the social provider and will be asked for his login.
- When the user enters the correct credentials, the user will be redirect to the EE site
- On the main EE site, the SSO module will check if the user exists.
- If the user does not exists:
- if member registration has been disabled.
- an error will be showed
- if member registration has been enabled.
- there will be a new member profile created for the user
- and a connect link will be made between the social provider and the EE site.
- if member registration has been disabled.
- If the user exists
- if the setting "Allow social login to merge with non social accounts" is set to
nothere will be shown an error on the screen and the user will be asked to enter a new email address. - if the setting "Allow social login to merge with non social accounts" is set to
yesthe user will be logged in on the account that already exists on the EE site. When "Require a verified email to link an existing account" is on (default), this only happens when the provider verified the email address, otherwise theemail_not_verifiederror is shown. - if the user has an account, that is connected to a social provider, it will always login on the existing account.
- if the setting "Allow social login to merge with non social accounts" is set to
- Banned and pending members cannot log in, they get the
account_bannedoraccount_pendingerror. Available from v5.10.0
Errors are shown with the error tags.
Return URLs
Available from v5.10.0
The return and new_member_return params must be a relative URL or a URL on the domain of your site. Other URLs are replaced by the site index, so the login links cannot be used to send visitors to another website. Allow extra domains in your config.php:
php
$config['reinos_sso_allowed_redirect_hosts'] = ['shop.example.com'];Logut
To logout use the regular EE tag {path='logout'} as mentions on the ExpressionEngine documentation site
