在我们的支付场景(ASP.Net MVC 5 Web 应用程序 VB.Net)中,用户可能会被重定向到发卡机构以进行进一步识别。 完成识别后,用户将被重定向回我们的 Web 应用程序。 命中的操作具有 Authorize 属性。
有时请求需要再次授权,请求被带到 RedirectToIdentityProvider - 这里 ProtocolMessage.RedirectUri 是正确的,但是请求被重定向到应用程序网关而不是 Web 应用程序。
我看过这个问题:[Azure Application Gateway support Open ID connect Authentication][1] 由于我的新手状态,我无法发表评论...... 谁能帮我把上面问题中的 C# 代码片段翻译成 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
答案 0 :(得分:0)
问题源于 Azure 配置