-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] ClaimsPrincipalExtensions.GetNameIdentifierId uses utid instead of sub claim #171
Comments
@felickz: which documentation? |
@felickz ? |
@jmprieur - the XML comment which indicates it pulls the "sub claim" - which is published to docs: https://docs.microsoft.com/en-us/dotnet/api/microsoft.identity.web.claimsprincipalextensions.getnameidentifierid?view=azure-dotnet-preview#parameters
Only stumbled on this because our b2c integration code fell into a odd flow, if this would have been looking at the sub claim as documented - my code would have worked out of the box. I cannot find any documentation on what the utid is intended to be sent by - some internal MSAL claim? Interesting though - that code has already been refactored and the method which caused that code to fall through is no longer there
|
#177) * use clientinfo endpoint to determine home object id and home tenant id for guest scenarios * Update src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com> * Update src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com> * Update src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com> * Update src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com> * Update src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com> Co-authored-by: pmaytak <34331512+pmaytak@users.noreply.github.com>
Thanks @felickz for your explanations |
…fierId Fixes the XML documentation for ClaimsPrincipalExtensions.GetNameIdentifierId therefore addressing #171
Fixed in Microsoft Identity Web 0.1.5-preview release. cc: @felickz |
Which Version of Microsoft Identity Web are you using ?
Note that to get help, you need to run the latest version.
Microsoft Identity Web 0.1.3-preview
https://github.com/AzureAD/microsoft-identity-web/blob/master/src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs
Where is the issue?
Other? - please describe;
Is this a new or existing app?
Repro
Expected behavior
As per documentation - this should be looking for SUB claim?
Actual behavior
Uses
Possible Solution
The text was updated successfully, but these errors were encountered: