src/SAML2/Message.php 1 location
|
@@ 564-566 (lines=3) @@
|
| 561 |
|
*/ |
| 562 |
|
public static function fromXML(\DOMElement $xml) |
| 563 |
|
{ |
| 564 |
|
if ($xml->namespaceURI !== Constants::NS_SAMLP) { |
| 565 |
|
throw new \Exception('Unknown namespace of SAML message: '.var_export($xml->namespaceURI, true)); |
| 566 |
|
} |
| 567 |
|
|
| 568 |
|
switch ($xml->localName) { |
| 569 |
|
case 'AttributeQuery': |
src/SAML2/Assertion.php 1 location
|
@@ 381-383 (lines=3) @@
|
| 378 |
|
if ($node instanceof \DOMText) { |
| 379 |
|
continue; |
| 380 |
|
} |
| 381 |
|
if ($node->namespaceURI !== Constants::NS_SAML) { |
| 382 |
|
throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true)); |
| 383 |
|
} |
| 384 |
|
switch ($node->localName) { |
| 385 |
|
case 'AudienceRestriction': |
| 386 |
|
$audiences = Utils::extractStrings($node, Constants::NS_SAML, 'Audience'); |