Uh oh!
There was an error while loading. Please reload this page.
Add debugging attributes to System.Security.Claims types - #86424
Conversation
ghost
commented
May 18, 2023
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
ghost
commented
May 18, 2023
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones Issue DetailsFixes #86421 After changes: I think it might be worth adding debugger proxy views for Thoughts do far?
|
adamsitnik
commented
May 18, 2023
cc @ViktorHofer |
adamsitnik
left a comment
There was a problem hiding this comment.
Overall it LGTM, I just need a confirmation from @ViktorHofer about how [DebuggerDisplayAttribute] should be used in ref files.
Thank you @JamesNK !
Uh oh!
There was an error while loading. Please reload this page.
stephentoub
commented
May 18, 2023
DebuggerDisplay is not part of the API contract. It's an implementation detail found via reflection by tools at execution time, and thus they're only relevant to the implementation assemblies. The genapi tool is told not to add them to ref assemblies: runtime/eng/DefaultGenApiDocIds.txt Line 12 in 2f18df4 |
Uh oh!
There was an error while loading. Please reload this page.
JamesNK
commented
May 18, 2023
Thanks. Yes, I just tested removing them, and for some reason now the attributes work without being in the ref. I'm not sure what I did wrong before. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JamesNK
commented
May 18, 2023
I just added type proxies. Original issue updated with screenshots. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JamesNK
commented
May 19, 2023
"runtime (Build ios-arm64 Release AllSubsets_Mono)" is failing. It seems unrelated. Can I merge? Should I rebase to try to get a green build? |
stephentoub
commented
May 19, 2023
It's unrelated. Merging. Thanks. |

Fixes#86421
After changes:
I have a question about
DebuggerDisplayAttributeand ref assemblies. I added them to the implementation classes and ran the ref update command -dotnet msbuild /t:GenerateReferenceAssemblySource- but they weren't added to the reference file. I had to do it manually. What should I do here?Extra work: It's worth adding debugger proxy views for
ClaimsPrincipalandClaimsIdentity. The proxy can remove the private/internal fields and display the counts from the claims collections. Proxies are more work so I'll hold off on that for now.Thoughts so far?
Update:
With type proxies:
ClaimsPrincipal:
ClaimsIdentity: