Skip to content

Commit b8ffc67

Browse files
authored
Fix ADFS IdP Response (#36)
RequestSecurityTokenResponse has to contain RequestedSecurityToken instead of RequestSecurityToken element
1 parent 644716f commit b8ffc67

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
@@ -587,9 +587,9 @@ public static function sendResponse(array $state): void
587587
$assertion = Assertion::fromXML($assertion->toXML());
588588
}
589589

590-
$requestSecurityToken = new RequestSecurityToken(null, [$assertion]);
590+
$requestedSecurityToken = new RequestedSecurityToken($assertion);
591591
$appliesTo = new AppliesTo([new EndpointReference(new Address($spEntityId))]);
592-
$requestSecurityTokenResponse = new RequestSecurityTokenResponse(null, [$requestSecurityToken, $appliesTo]);
592+
$requestSecurityTokenResponse = new RequestSecurityTokenResponse(null, [$requestedSecurityToken, $appliesTo]);
593593

594594
$xmlResponse = $requestSecurityTokenResponse->toXML();
595595
$wresult = $xmlResponse->ownerDocument->saveXML($xmlResponse);

0 commit comments

Comments
 (0)