Skip to content

Commit 644716f

Browse files
committed
Use the potentially manipulated issuer from the state (saml:ScopedIssuer authproc)
1 parent 8a2ca45 commit 644716f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IdP/ADFS.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public static function sendPassiveResponse(array $state): void
416416
{
417417
$idp = IdP::getByState($state);
418418
$idpMetadata = $idp->getConfig();
419-
$idpEntityId = $idpMetadata->getString('entityid');
419+
$idpEntityId = $state['IdPMetadata']['entityid'];
420420

421421
$spMetadata = $state['SPMetadata'];
422422
$spEntityId = $spMetadata['entityid'];
@@ -546,7 +546,7 @@ public static function sendResponse(array $state): void
546546

547547
$idp = IdP::getByState($state);
548548
$idpMetadata = $idp->getConfig();
549-
$idpEntityId = $idpMetadata->getString('entityid');
549+
$idpEntityId = $state['IdPMetadata']['entityid'];
550550

551551
$idp->addAssociation([
552552
'id' => 'adfs:' . $spEntityId,

0 commit comments

Comments
 (0)