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
public void ConfigureServices(IServiceCollection services)
{
services.AddScheme<BasicOptions, BasicAuthenticationHandler>("Interactive", _ => { });
services.AddScheme<BasicOptions, BasicAuthenticationHandler>("Api", _ => { });
services.AddAuthentication()
.AddScheme<BasicOptions, BasicAuthenticationHandler>("Interactive", _ => { })
.AddScheme<BasicOptions, BasicAuthenticationHandler>("Api", _ => { });
services.AddMvc();
services.AddAuthorization(options =>
{