An example X-MS-CLIENT-PRINCIPAL token that I see in my app looks like the following after it is decoded (I've changed name, GUIDs and scrubbed some fields by replacing bits by '...'):
means that the username Joe Bloggs is not getting correctly populated in the claims principal. Because clientPrincipal.NameType == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" and doesn't match the "typ": "name" claim. Instead claimsIdentity.Name ends up being null.
Have you seen this behaviour? Perhaps the format of the token has changed over time?
Hi,
An example X-MS-CLIENT-PRINCIPAL token that I see in my app looks like the following after it is decoded (I've changed name, GUIDs and scrubbed some fields by replacing bits by '...'):
Consequently, I think that in
EasyAuthAuthenticationHandler.cs
the linemeans that the username
Joe Bloggs
is not getting correctly populated in the claims principal. BecauseclientPrincipal.NameType == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
and doesn't match the"typ": "name"
claim. InsteadclaimsIdentity.Name
ends up beingnull
.Have you seen this behaviour? Perhaps the format of the token has changed over time?
Thanks, Richard