Security icon indicating copy to clipboard operation
Security copied to clipboard

ConfigureAuthorization Breaking change

Open afoliaco opened this issue 11 years ago • 1 comments

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()); });

afoliaco avatar Oct 20 '15 21:10 afoliaco

Yeah all the ConfigureXyz methods for frameworks have been collapsed into AddAuthorization overloads which have the same behavior

HaoK avatar Oct 21 '15 01:10 HaoK