Skip to content

Commit 4c1bdaf

Browse files
committed
Honor security token node name based on authentication type
1 parent a47809a commit 4c1bdaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ protected static function getSecurityAddress( DOMNode $securityPolicyNode, $auth
374374
if ( $securityPolicyNode->getElementsByTagName( $tokenElementName )->length == 0 ) {
375375
throw new Exception( 'Could not find ' . $tokenElementName . ' tag in provided security policy XML' );
376376
}
377-
$estNode = $securityPolicyNode->getElementsByTagName( 'SignedSupportingTokens' )->item( 0 );
377+
$estNode = $securityPolicyNode->getElementsByTagName( $tokenElementName )->item( 0 );
378378

379379
/* Find the Policy tag */
380380
if ( $estNode->getElementsByTagName( 'Policy' )->length == 0 ) {

0 commit comments

Comments
 (0)