首页 > 解决方案 > 带有 URL 重写的 signin-oidc 回调 404

问题描述

我配置了 URL Rewrite 并在 hosts 文件中添加了条目以访问https://localhost/app作为https://app.localhost

我遇到的问题是在身份服务器 4 上成功登录后的 openid connect 回调。它返回 404 错误。这是合乎逻辑的,因为客户端的启动 RedirectUri 值设置为https://app.localhost/signin-oidc但是当回调来自身份服务器时,url重写规则将其转换为https://localhost/app/signin-oidc

如何使它与 URL 重写一起工作?感谢任何帮助和想法

PS ARR 代理已启用,但未选中反向重写主机(这是类似问题的解决方案,但在我的情况下没有帮助)

标签: url-rewritingidentityserver4openid-connectarr

解决方案


推荐阅读