我有一个带有openid connect身份验证的asp.net core 2 mvc应用程序。它在Visual Studio调试到IIS Express的本地运行。 部署到Azure之后,我看到以下错误:invalid_request:输入参数'redirect_uri'的提供的值无效
这是我的appsettings回调路径:“ / Identity / AuthResult /” 我需要放入完整的URI,例如https://mysite.azurewebsites.net/Identity/AuthResult/吗?
这是我的启动代码:`services.AddAuthentication(AzureADDefaults.AuthenticationScheme) .AddAzureAD(options => Configuration.Bind(“ AzureAd”,options));
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
{
options.Authority = options.Authority + "/v2.0/"; // Microsoft identity platform
options.TokenValidationParameters.ValidateIssuer = false; // accept several tenants (here simplified)
});`
我正在关注这个维基Quickstart: Add sign-in with Microsoft to an ASP.NET Core web app