我正在尝试使用ASP.NET Core3.1添加多个身份验证方案,在尝试向服务器发送一个持有者令牌时遇到了这个问题: System.InvalidOperationException: No authenticationSchemewas specified, and there was no DefaultChallengeScheme found.;
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;option
它在本地机器上运行良好,但在Azure部署之后,我得到了一个错误。
在Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.StartListener() at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.ReceiveCodeAsync(AuthorizationCodeRequestUrl url的System.Net.HttpListener.SetupV2Config() at System.Net.HttpListener.Start(),Google.Apis.Auth.OAuth2.A