Search by

se7enxweb / nxc_sso

7x

There is no license information available for the latest version (v0.1) of this package.

NXC Single Sign-On eZ Publish extension Official Community Project: usable with Exponential 6 after review; not yet in the App Store.

v0.1 2026-12-03 19:16 UTC

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

  1. This extension uses nxcCache from nxc_tools eZ Publish extension, so it has to be installed too.
  2. All site domains must be on the same eZ Publish installation to share authorization tokens. Also all sites must have the same users.
  3. 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:

  1. User visits master.com and logs in
  2. After that visits slave1.com and is not logged in
  3. Clicks to link http://master.com/sso/login
  4. As a result the user is already logged in on slave1.com

Or

  1. User visits slave2.com and he is not logged in and on master as well.
  2. Clicks to link http://master.com/sso/login
  3. Logs in to master.com
  4. 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.