add email address claims in XML

This commit is contained in:
= 2026-05-27 13:10:51 +00:00
parent a37b6a91be
commit f61acb8907

View File

@ -255,6 +255,14 @@ public function generateResponse(
$user->name,
);
// emailaddress (Required by Microsoft SAML 2.0 specifications)
$this->addAttribute(
$dom,
$attributeStatement,
'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',
$user->email,
);
$assertion->appendChild($attributeStatement);
$response->appendChild($assertion);
$dom->appendChild($response);