【发布时间】:2022-11-01 20:15:31
【问题描述】:
我正在尝试运行 WebApp B2C 示例: https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC/1-5-B2C
当我尝试登录时,我收到以下错误:
IDX40002: Microsoft.IdentityModel does not support a B2C issuer with 'tfp' in the URI. See https://aka.ms/ms-id-web/b2c-issuer for details.
如果我将Instance 编辑为https://myHost.b2clogin.com,我会得到:
AADSTS50011: The redirect URI 'https://myHost.b2clogin.com/1c2009bb-7e35-4a0e-9f22-xxxxxxxxx/oauth2/authresp' specified in the request does not match the redirect URIs configured for the application 'c24b0337-0bd9-45ee-8376-xxxxxxxxx'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
【问题讨论】:
-
请检查 azure 应用注册中给出的重定向 URI 是否与您请求的匹配。第二条错误消息显然是这样说的。
-
https://myHost.b2clogin.com/1c2009bb-7e35-4a0e-9f22-xxxxxxxxx/oauth2/authresp重定向 uri?!?
标签: azure-ad-b2c azure-ad-b2c-custom-policy azure-b2c