Skip to content
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

Update .NET 8 Docs for Claim Mapping #30935

Closed
rudiv opened this issue Nov 4, 2023 · 4 comments · Fixed by #30939
Closed

Update .NET 8 Docs for Claim Mapping #30935

rudiv opened this issue Nov 4, 2023 · 4 comments · Fixed by #30939
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue ⌚ Not Triaged

Comments

@rudiv
Copy link
Contributor

rudiv commented Nov 4, 2023

Description

As of .NET 8 Preview 7, the referenced code under Claims namespaces, default namespaces will no longer work.

It suggests calling JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); which is now JsonWebTokenHandler.DefaultInboundClaimTypeMap.Clear();.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/claims?view=aspnetcore-8.0#claims-namespaces-default-namespaces

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/claims.md

Document ID

b01e1351-d362-fd61-4dcb-bacb21559f76

Article author

damienbod

@dotnet-bot dotnet-bot added ⌚ Not Triaged aspnet-core/prod Source - Docs.ms Docs Customer feedback via GitHub Issue labels Nov 4, 2023
@damienbod
Copy link
Contributor

I can do this, @rudiv thanks for reporting

Greetings Damien

@rudiv
Copy link
Contributor Author

rudiv commented Nov 4, 2023

@damienbod awesome, I'm not sure if it's worth suggesting the newer MapInboundClaims = false option rather than this though? This is global whereas the option is per scheme.

@terryaney
Copy link

@damienbod awesome, I'm not sure if it's worth suggesting the newer MapInboundClaims = false option rather than this though? This is global whereas the option is per scheme.

Isn't it saying the opposite?

If you need to disable the namespaces per scheme and not globally, you can use the MapInboundClaims = false option.

@jgga16
Copy link

jgga16 commented Jun 7, 2024

Thanks, Is Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue ⌚ Not Triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants