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

Extend AspNetUserClaimLayoutRenderer to handle multi-values #949

Closed
snakefoot opened this issue Jun 8, 2023 · 2 comments · Fixed by #975
Closed

Extend AspNetUserClaimLayoutRenderer to handle multi-values #949

snakefoot opened this issue Jun 8, 2023 · 2 comments · Fixed by #975

Comments

@snakefoot
Copy link
Contributor

snakefoot commented Jun 8, 2023

Inherit from AspNetLayoutMultiValueRendererBase and support outputting all assigned claim-values:

                foreach (var claim in ctx.Principal.Claims)
                {
                    Console.WriteLine($"{claim.Type} - {claim.Value}");
                }

See also: https://nestenius.se/2023/06/02/debugging-jwtbearer-claim-problems-in-asp-net-core/

@bakgerman
Copy link
Contributor

I will examine this

@bakgerman
Copy link
Contributor

PR submitted

@snakefoot snakefoot changed the title Extend AspNetUserClaimLayoutRenderer to handle multi-values Extended AspNetUserClaimLayoutRenderer to handle multi-values Aug 4, 2023
@snakefoot snakefoot changed the title Extended AspNetUserClaimLayoutRenderer to handle multi-values Extend AspNetUserClaimLayoutRenderer to handle multi-values Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants