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
/*
* Get IdP id and metadata
*/
$session = SimpleSAML_Session::getInstance();
if($session->getIdP() != null) {
if($as->getAuthData('saml:sp:IdP') !== NULL) {
/*
* 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');
} 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