-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add the latest recommended passing tokens approach #35482
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
base: main
Are you sure you want to change the base?
Conversation
e1f1442
to
d653a02
Compare
var claimsIdentity = new ClaimsIdentity(context.Principal?.Identity, | ||
[new Claim("AccessToken", accessToken ?? "No Access Token!")]); | ||
context.Principal = new ClaimsPrincipal(claimsIdentity); | ||
context.Properties.Items.Remove("access_token"); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
if (user is not null) | ||
{ | ||
var accessToken = | ||
user.Claims.First(c => c.Type == "AccessToken")?.Value; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Fixes #31691
Addresses #35225
π§ π·ββοΈ WIP ποΈ π§
As usual, the updates are based on π¦ RexHacks!β’ π. Get ready for the code smells! π©ππ
Internal previews