Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I’m using Azure Static Web Apps authentication with Azure AD / Entra ID. Intermittently, /.auth/me returns a masked value in clientPrincipal.userDetails, for example:
{
"identityProvider": "aad",
"userId": "11111111111111111111111",
"userDetails": "joh*****", <<<<< Azure SWA masks this for privacy
"userRoles": ["anonymous", "authenticated"]
}
Other times, for the same signed-in user, it returns the expected full email:
{
"identityProvider": "aad",
"userId": "11111111111111111111111",
"userDetails": "username @domain.com", <<<<< Azure SWA returns full email address
"userRoles": ["anonymous", "authenticated"]
}
An Azure service that provides streamlined full-stack web app development.