blob: 3ac4815929455077cb505eac4ee3ae8b0cbd9107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* Example SP PHP5 code to get attributes from an assertion */
foreach ($assertion->attributeStatement[0]->attribute as $attribute) {
if ($attribute->name == LASSO_SAML2_ATTRIBUTE_NAME_EPR) {
continue;
}
echo 'attribute : ' . $attribute->name . "\n";
foreach ($attribute->attributeValue as $value) {
echo ' value : ' . $value->any[0]->content . "\n";
}
}
|