-
Notifications
You must be signed in to change notification settings - Fork 162
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
Add AuthenticatedSchemes option #1047
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #1047 +/- ##
==========================================
- Coverage 93.44% 92.40% -1.04%
==========================================
Files 44 45 +1
Lines 2180 2224 +44
Branches 367 379 +12
==========================================
+ Hits 2037 2055 +18
- Misses 102 124 +22
- Partials 41 45 +4
|
foreach (var scheme in _options.AuthenticationSchemes) | ||
{ | ||
var result = await context.AuthenticateAsync(scheme); | ||
if (result != null && result.Succeeded) | ||
{ | ||
newPrincipal = SecurityHelper.MergeUserPrincipal(newPrincipal, result.Principal); | ||
} | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Select
Fixes:
See: