Security
Security copied to clipboard
ConfigureAuthorization Breaking change
Beta 8 breaking change ConfigureAuthorization is no longer an extension of IServiceCollection
services.ConfigureAuthorization(options => { options.AddPolicy("Bearer", new AuthorizationPolicyBuilder(). AddAuthenticationSchemes(OAuthBearerAuthenticationDefaults.AuthenticationScheme). RequireAuthenticatedUser(). Build()); });
Yeah all the ConfigureXyz methods for frameworks have been collapsed into AddAuthorization overloads which have the same behavior