Skip to content
Snippets Groups Projects
Unverified Commit c7b8ecde authored by Michal Procházka's avatar Michal Procházka Committed by GitHub
Browse files

Merge pull request #5 from pajavyskocil/idpEntityIDFilter

Added support for pass selected IdP from SP
parents a5eb4897 3ee87419
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
[Added]
- Added support for pass selected IdP from SP in AuthnContextClassRef attribute.
- It's required add this line into module_perun.php config file
<pre>
'disco.removeAuthnContextClassRefPrefix' => 'urn:cesnet:proxyidp:',
</pre>
[Changed] [Changed]
- Social Idps are not shown when adding institution - Social Idps are not shown when adding institution
......
...@@ -25,6 +25,9 @@ const WARNING_TEXT = 'text'; ...@@ -25,6 +25,9 @@ const WARNING_TEXT = 'text';
const MFA_IDENTIFIER = "https://refeds.org/profile/mfa"; const MFA_IDENTIFIER = "https://refeds.org/profile/mfa";
const MFA_IDP = "https://stepup.elixir-finland.org/idp/shibboleth"; const MFA_IDP = "https://stepup.elixir-finland.org/idp/shibboleth";
const URN_CESNET_PROXYIDP_IDPENTITYID = "urn:cesnet:proxyidp:idpentityid:";
$idpEntityId = null;
$warningIsOn = false; $warningIsOn = false;
$warningUserCanContinue = null; $warningUserCanContinue = null;
...@@ -92,6 +95,12 @@ if ($this->isAddInstitutionApp()) { ...@@ -92,6 +95,12 @@ if ($this->isAddInstitutionApp()) {
$url = $this->getContinueUrl(MFA_IDP); $url = $this->getContinueUrl(MFA_IDP);
SimpleSAML\Utils\HTTP::redirectTrustedURL($url); SimpleSAML\Utils\HTTP::redirectTrustedURL($url);
exit; exit;
} elseif (substr($value, 0, strlen(URN_CESNET_PROXYIDP_IDPENTITYID)) === URN_CESNET_PROXYIDP_IDPENTITYID) {
$idpEntityId = substr($value, strlen(URN_CESNET_PROXYIDP_IDPENTITYID), strlen($value));
SimpleSAML\Logger::info("Redirecting to " . $idpEntityId);
$url = $this->getContinueUrl($idpEntityId);
SimpleSAML\Utils\HTTP::redirectTrustedURL($url);
exit;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment