OP\SubsiteLeftAndMainSubsites
Hack for Single Sign On and subsites. Authentication can only work on one domain, so we check to see if it's on a subsite, and if it is point it to where $_FILE_TO_URL_MAPPING lives.
Synopsis
class SubsiteLeftAndMainSubsites
extends LeftAndMainSubsites
{
- // methods
- public redirect onBeforeInit()
Hierarchy
Extends
- SilverStripe\Subsites\Extensions\LeftAndMainSubsites
Methods
public
- onBeforeInit() — Detect if you're trying to access the admin section from the non main site