Single Sign On component for Mercator.
This package is auto-updated.
Last update: 2021-11-05 03:02:48 UTC
Single Sign-On component for Mercator.
Allows you to share cookies between all sites on the same subdomain.
Mercator requires WordPress 3.9 or newer for the new sunrise processes. Mercator also requires PHP 5.3+ due to the use of namespaced code.
Include the file
sso.php from your
sunrise.php in the same way you include Mercator itself.
<?php // Default mu-plugins directory if you haven't set it defined( 'WPMU_PLUGIN_DIR' ) or define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); require WPMU_PLUGIN_DIR . '/mercator-sso/sso.php'; require WPMU_PLUGIN_DIR . '/mercator-sso/sso-multinetwork.php'; require WPMU_PLUGIN_DIR . '/mercator/mercator.php';
Optionally you can use
sso-multinetwork.php as well if you're running
a multinetwork site.
You can modify SSO behaviour for example in a local environment with the
following filters in
// Disable SSO add_filter( 'mercator.sso.enabled', '__return_false' );
// Disable Multinetwork SSO add_filter( 'mercator.sso.multinetwork.enabled', '__return_false' );
Mercator is licensed under the GPLv3 or later.
Created by Human Made for high volume and large-scale sites, such as Happytables. We run Mercator SSO on sites with millions of monthly page views, and thousands of sites.
Mercator builds on concepts from WPMU Domain Mapping, written by Donncha O'Caoimh, Ron Rennick, and contributors.
Mercator relies on WordPress core, building on core functionality added in WP27003. Thanks to all involved in the overhaul, including Andrew Nacin and Jeremy Felt.
Interested in joining in on the fun? Join us, and become human!