【发布时间】:2023-03-03 17:12:01
【问题描述】:
我正在使用身份服务器并将其托管在 IIS 下。直接托管在http://localhost:44431下时运行良好
第 1 步: 致电http://localhost:44431/account/login?returnUrl=/connect/authorize/login?respone_type.... 第 2 步:然后它转到 Authorize Endpoint 并返回一个令牌
localhost\id 下的问题托管:
但是,当我将应用程序部署到默认网站下的 IIS 上时,默认网站为 localhost\id。它停止工作。
第一步:拨打http://localhost/id/account/login?returnUrl=/connect/authorize/login?respone_type....
>> 检查请求标头:
>> 响应头:
>> 在http://localhost/id/.well-known/openid-configuration打开 ID 配置
"authorization_endpoint":"http://localhost/id/connect/authorize",
第 2 步:调用/connect/authorize 端点:
>> 检查标题:
它不包括id 虚拟目录,这就是它失败的原因。在这个过程中我必须在哪里解决这个问题?
【问题讨论】:
标签: asp.net-mvc iis asp.net-core identityserver3 identityserver4