Azure AD B2C:请求中提供的重定向 URI 未注册客户端 ID...但实际上是

Mal*_*dor 6 azure azure-active-directory azure-ad-b2c

我们有以下 Azure AD B2C 应用程序(我们将其称为aadb2c),具有以下设置

  Include web app/ web API: YES
  Allow Implicit Flow: YES
  Reply Url:
   - https://localhost:44339/
   - https://productionURL.com
   - https://productionURL.com/

   App ID URI (which is optional): none
   Native CLient: NO
Run Code Online (Sandbox Code Playgroud)

我们的网站使用此应用程序https://productionURL.com通过 azure AD B2C 登录其用户。

然而,在生产中我们不断收到错误:

The redirect URI 'productionURL.com' provided in the request is not registered for the client id 'aadb2c'

据此我们应该添加到回复网址的链接。但正如您在上面看到的,我们已经包含https://productionURL.com在 Azure AD B2C 刀片的“回复 URL”部分中。

什么可能导致此错误发生?我们如何解决重定向 URI 请求未注册错误?

Mal*_*dor 3

经过几个小时的查看代码后,我们没有发现没有任何协议的 url 痕迹,也没有任何“http:”痕迹,现在我们必须查看我们的部署协调器。

显然,在 Octopus 中,我们使用不正确的 URI 部署应用程序:它缺少协议“https://”