From bb2a20ca1dcbce63f2cee0aa5cc2feda4ce00203 Mon Sep 17 00:00:00 2001 From: Rhubarbselleven Date: Fri, 8 Mar 2013 13:43:10 +1100 Subject: [PATCH] Support for alternate cookie domain --- crowd/crowd.php | 7 +++++++ crowd/crowd.xml | 5 +++++ crowd/index.html | 0 crowdsso/index.html | 0 4 files changed, 12 insertions(+) create mode 100644 crowd/index.html create mode 100644 crowdsso/index.html diff --git a/crowd/crowd.php b/crowd/crowd.php index 58ce7d8..be7fea6 100644 --- a/crowd/crowd.php +++ b/crowd/crowd.php @@ -140,6 +140,13 @@ function doCrowdLogin( $credentials, $options, &$response ) $obj = json_decode($result->body); $cookieName = $obj->name; $cookieDomain = $obj->domain; + + // if we have an alternal cookie domain, set it now. + $altCookieDomain = $this->params->get('crowd_cookie_domain'); + if (is_string($altCookieDomain)) { + $cookieDomain = $altCookieDomain; + } + JLog::add('cookie name: ' . $cookieName . ', domain: ' . $cookieDomain); // now trying to login diff --git a/crowd/crowd.xml b/crowd/crowd.xml index 96558cf..ebd7bf1 100644 --- a/crowd/crowd.xml +++ b/crowd/crowd.xml @@ -31,6 +31,11 @@ label="Application password" size="40" /> +