将应用程序推送到Azure服务时,Azure AD B2C登录无法正常工作

lag*_*fvu 7 asp.net azure openid-connect azure-ad-b2c

我有一个使用Azure AD B2C登录的Asp.Net核心Web应用程序.当我http://localhost:54678/在应用程序和Azure门户中的设置中使用回复URL 在本地测试它工作正常,我可以登录并且用户进行身份验证没有问题.但是,一旦我将回复网址更新为该应用的网址https://musdqapp.com,我就会收到以下错误:

message =相关失败

这就是我设置的方式 OpenIdConnectOptions

 app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions()
 {
   Authority = "https://login.microsoftonline.com/tfp" + "/ticketfortb2c.onmicrosoft.com" + "/B2C_1_ticket-fort" + "/v2.0",
   ClientId = "client_is", //the id of the b2c application
   ClientSecret = "secret",
   ResponseType = OpenIdConnectResponseType.IdToken,
   UseTokenLifetime = true,
   PostLogoutRedirectUri = "https://musdqapp.com/",
   Events = new OpenIdConnectEvents()
   {
     OnTokenValidated = SecurityTokenValidated,
     OnRemoteFailure = OnRemoteFailure
   }
 });
Run Code Online (Sandbox Code Playgroud)

在Azure门户网站上,我将B2C应用程序的回复网址设置为 https://musdqapp.com/signin-oidc

Joe*_*rra 4

回复 URL 必须是https://musdqapp.com/,不带“signin-oidc”。回复 URL 和重定向 URI 应匹配。

请参阅此博客文章了解更多信息。