-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Create WindowsPrincipal when cloning WindowsIdentity for SignalR #19337
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
Conversation
| } | ||
| else | ||
| { | ||
| newContext.User = new ClaimsPrincipal(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, to get rid of skipFirstIdentity
| newContext.User = new ClaimsPrincipal(); | |
| newContext.User = new ClaimsPrincipal(windowsIdentity.Clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think I have to keep it as is, because I still need to skip somehow when copying the rest of the identities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't you just always skip? You could do something like oldContext.User.Identities.Skip(1), right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That allocates I believe
|
@anurse I noticed this PR is added to 5.0.0-preview2 milestone. Can something this small be shipped earlier than that, please? Thank you. 🙂 |
|
@bmoteria Unfortunately no, the preview1 branch is closed to new changes at this time. |
Fixes #18560