nxc_sso
Last updated: Thursday 18 September 2025 16:51
UNIX name |
Owner |
Status |
nxc_sso |
7x |
stable
|
Version |
Compatible with |
N/A
|
N/A
|
NXC Single Sign-On eZ Publish extension
NXC Single Sign-On eZ Publish extension
OVERVIEW
Provides an ability to log users in once and gains access to all domains/sites without being prompted to log in again at each of them.
REQUIREMENTS
- This extension uses nxcCache from nxc_tools eZ Publish extension, so it has to be installed too.
- All site domains must be on the same eZ Publish installation to share authorization tokens. Also all sites must have the same users.
- And if sites use cluster configuration, all sites must have the same database, beacuse nxcCache will use cluster file handler.
INSTALLATION
Firstly need to activate extensions.
settings/override/site.ini.append.php:
[ExtensionSettings]
...
ActiveExtensions[]=nxc_tools
ActiveExtensions[]=nxc_sso
After that generate autoloads
$ php ./bin/php/ezpgenerateautoloads.php -e
HOW IT WORKS
There are master site and few slaves.
For example, master.com, slave1.com and slave2.com
So flow would be:
- User visits master.com and logs in
- After that visits slave1.com and is not logged in
- Clicks to link http://master.com/sso/login
- As a result the user is already logged in on slave1.com
Or
- User visits slave2.com and he is not logged in and on master as well.
- Clicks to link http://master.com/sso/login
- Logs in to master.com
- Is redirected back to slave2.com where is already logged in too.
In this case need to handle GET variable redirect_url in user/login.tpl
like: