se7enxweb / nxc_sso
NXC Single Sign-On eZ Publish extension Official Community Project: usable with Exponential 6 after review; not yet in the App Store.
Fund package maintenance!
Requires
- php: >=8.0
- se7enxweb/exponential-legacy-installer: ^2.2.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 19:17:42 UTC
README
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:
<input type="hidden" name="RedirectURI" value="{ezhttp( 'redirect_url', 'get' )|wash}" />
Official status: Official Community Project for Exponential 6. Usable with Exponential 6 after review; not yet in the App Store.