Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cilogon/service-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Feb 5, 2020
2 parents e9d2939 + 24db12e commit 1a64e05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Service/ShibError.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ public function __construct()
// CIL-410 Temporary fix for /secure/testidp Shibboleth error.
// Check for error and redirect to /testidp .
if (
(isset($this->errorarray['errorType'])) &&
($this->errorarray['errorType'] == 'shibsp::ConfigurationException') &&
(isset($this->errorarray['errorText'])) &&
($this->errorarray['errorText'] ==
'None of the configured SessionInitiators handled the request.') &&
(preg_match('%/secure/testidp%', $this->errorarray['requestURL']))
Expand All @@ -93,8 +95,11 @@ public function __construct()
// CIL-480 Check for user IdP login failure and OAuth transaction
// and redirect appropriately
} elseif (
(isset($this->errorarray['errorType'])) &&
($this->errorarray['errorType'] == 'opensaml::FatalProfileException') &&
(isset($this->errorarray['errorText'])) &&
($this->errorarray['errorText'] == 'SAML response reported an IdP error.') &&
(isset($this->errorarray['statusCode2'])) &&
($this->errorarray['statusCode2'] == 'urn:oasis:names:tc:SAML:2.0:status:AuthnFailed')
) {
$clientparams = json_decode(Util::getSessionVar('clientparams'), true); // OAuth 2.0
Expand Down

0 comments on commit 1a64e05

Please sign in to comment.