Stop using obsolete version of AddScheme in test

This commit is contained in:
Hao Kung 2017-09-20 12:48:46 -07:00
parent f7968714a9
commit 95c10050c9
1 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,9 @@ namespace FiltersWebSite
// Set up application services // Set up application services
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
services.AddScheme<BasicOptions, BasicAuthenticationHandler>("Interactive", _ => { }); services.AddAuthentication()
services.AddScheme<BasicOptions, BasicAuthenticationHandler>("Api", _ => { }); .AddScheme<BasicOptions, BasicAuthenticationHandler>("Interactive", _ => { })
.AddScheme<BasicOptions, BasicAuthenticationHandler>("Api", _ => { });
services.AddMvc(); services.AddMvc();
services.AddAuthorization(options => services.AddAuthorization(options =>
{ {