【问题标题】:Azure Application Gateway Open ID Authentication RedirectUriAzure 应用程序网关 Open ID 身份验证 RedirectUri
【发布时间】:2021-04-19 15:54:10
【问题描述】:

在我们的支付场景(ASP.Net MVC 5 Web 应用程序 VB.Net)中,用户可能会被重定向到发卡机构以进行进一步识别。 完成识别后,用户将被重定向回我们的 Web 应用程序。 被命中的动作具有 Authorize 属性。

有时需要再次授权请求,并将请求带到 RedirectToIdentityProvider - 这里的 ProtocolMessage.RedirectUri 是正确的,但是请求被重定向到应用程序网关而不是 Web 应用程序。

我看过这个 SO 问题:[Azure 应用程序网关支持 Open ID 连接身份验证][1] 由于我的新手身份,我无法制作 cmets... 谁能帮我把上面问题中的 C# sn-p 翻译成 VB.net:

if (env.IsProduction())
{
    app.Use((context, next) =>
    {                    
         context.Request.Host = new HostString("<gateway.host>");
         return next();
    });
} 

app.use 部分 [1]:Azure Application Gateway support Open ID connect Authentication

【问题讨论】:

    标签: vb.net azure owin


    【解决方案1】:

    问题源于 Azure 配置

    【讨论】:

      猜你喜欢
      • 2020-09-03
      • 1970-01-01
      • 1970-01-01
      • 2018-08-11
      • 1970-01-01
      • 1970-01-01
      • 2020-07-10
      • 1970-01-01
      • 2018-07-23
      相关资源
      最近更新 更多