src/SAML2/Message.php 1 location
|
@@ 568-570 (lines=3) @@
|
| 565 |
|
*/ |
| 566 |
|
public static function fromXML(\DOMElement $xml) |
| 567 |
|
{ |
| 568 |
|
if ($xml->namespaceURI !== Constants::NS_SAMLP) { |
| 569 |
|
throw new \Exception('Unknown namespace of SAML message: '.var_export($xml->namespaceURI, true)); |
| 570 |
|
} |
| 571 |
|
|
| 572 |
|
switch ($xml->localName) { |
| 573 |
|
case 'AttributeQuery': |
src/SAML2/Assertion.php 1 location
|
@@ 359-361 (lines=3) @@
|
| 356 |
|
if ($node instanceof \DOMText) { |
| 357 |
|
continue; |
| 358 |
|
} |
| 359 |
|
if ($node->namespaceURI !== Constants::NS_SAML) { |
| 360 |
|
throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true)); |
| 361 |
|
} |
| 362 |
|
switch ($node->localName) { |
| 363 |
|
case 'AudienceRestriction': |
| 364 |
|
$audiences = Utils::extractStrings($node, Constants::NS_SAML, 'Audience'); |