-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Authentication/Authorization API changes for preview.7 #42481
Comments
@captainsafia how do you want to split this? Maybe I do 1,2,4, and you take 3 and 5? |
No, I didn't do any part of this in the current PRs. I was working on 4 right now since that's orthogonal to everything else, so maybe you do 1 and I'll do 4 as the first step? Its just a new PostConfigure on AuthenticationOptions so I should have a PR up for that soon hopefully |
Cool so we aren't duplicating any work right now |
API review issue for the |
OK. 1, 2, and 4 are done. |
I think #3 still needs to be merged so it might be prudent to keep this one open until then. |
I stand corrected. It was merged half an hour ago. Closing again. |
Following changes to be made to the authentication and authorization configuration APIs and behaviors:
- [ ] Change theWebApplicationBuilder.Authentication
property to be a methodAddAuthentication()
with the same overloads asIServiceCollection.AddAuthentication()
- [ ] AddWebApplicationBuilder.AddAuthorization()
method that is functional equivalent ofIServiceCollection.AddAuthorizationBuilder()
Authentication
property from WebApplicationBuilderAuthenticationOptions.DefaultScheme
from configuration (anddotnet user-jwts
setting it in applicationSettings.Development.json)AuthenticationOptions.DefaultPolicy
to that scheme, and add a newbool
propertyAuthenticationOptions.DisableAutoDefaultScheme
to enable disabling this behaviorall hosts (not justWebApplicationBuilder
)WebApplicationBuilder
and add newbool
optionto the various hosting options/APIsto enable disabling this behavior, e.g.WebApplicationOptions.DisableAutoAddAuthMiddleware
This behavior should apply whether adding AuthN schemes viaIServiceCollection.AddAuthentication()
orWebApplicationBuilder.AddAuthentication()
, etc.The text was updated successfully, but these errors were encountered: