Skip to content
Snippets Groups Projects
Commit 77365319 authored by Olav Morken's avatar Olav Morken
Browse files

consentAdmin: Retrieve IdP entityID from current authsource.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2645 44740490-163a-0410-bde0-09ae8108e29a
parent 05bf398e
No related branches found
No related tags found
No related merge requests found
...@@ -110,13 +110,11 @@ SimpleSAML_Logger::critical('consentAdmin: sp: ' .$sp_entityid.' action: '.$acti ...@@ -110,13 +110,11 @@ SimpleSAML_Logger::critical('consentAdmin: sp: ' .$sp_entityid.' action: '.$acti
/* /*
* Get IdP id and metadata * Get IdP id and metadata
*/ */
$session = SimpleSAML_Session::getInstance(); if($as->getAuthData('saml:sp:IdP') !== NULL) {
if($session->getIdP() != null) {
/* /*
* From a remote idp (as bridge) * From a remote idp (as bridge)
*/ */
$idp_entityid = $session->getIdP(); $idp_entityid = $as->getAuthData('saml:sp:IdP');
$idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-remote'); $idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-remote');
} else { } else {
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment