在Azure ADB2C中配置自定义OpenID提供商(使用.NET 6和Identity Server4)给出错误
我已经使用.NET 6和Identity Server创建了一个OpenID提供商4,现在我试图将其用作ADB2C中的自定义标识提供商,以下配置下提供了
每次都不知道错误,不确定它出现在哪里以及位置:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户身份提供商调试的用户流量有限。问题通常归结为错误的OpenID配置,秘密或要求映射。一个已知的问题是由端点广告EC键引起的,因为Azure AD B2C仅支持RSA广告密钥。
为了获得更多用户端调试功能,我建议您切换到使用应用程序见解进行故障排除并使用在此期间获得的相关ID过滤您的日志 错误。您将需要 vs code 和。
要进行其他调试,请随时粘贴您的应用程序见解日志减去任何PII(个人身份信息)信息。如果您想在此处坚持使用用户流粘贴,则错误消息中显示的调试信息(相关ID + TIMESTAMP)。
User side Identity Provider debugging is limited for User Flows. Problems usually boil down to incorrect openid config, secret or claim mappings. A known issue is caused by endpoint advertising EC keys since Azure AD B2C only supports RSA advertised keys.
In order to gain more user side debugging capabilities I suggest you switch to custom policies and follow the steps documented in Troubleshooting with Application Insights and filter your logs using the correlation ID obtained during the error. You will need VS Code and the Azure AD B2C extension.
For additional debugging feel free to paste your app insights logs minus any PII (Personally identifiable information) information. In case you want to stick to User Flows paste here the debugging information (correlation id + timestamp) displayed in the error message.