Ask questionsNo DefaultChallengeScheme found from preview8 to preview9
Hello,
I just update my application to preview9 and i have a exception working with preview8.
System.InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The default schemes can be set using either AddAuthentication(string defaultScheme) or AddAuthentication(Action<AuthenticationOptions> configureOptions).
I change nothing except update to preview9 and asp package update. And i hacve already configure a auth.
services.AddAuthentication(options => { options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; });
Kind regards,
Related questions