【问题标题】:Hosting Identity Server 3 in IIS在 IIS 中托管 Identity Server 3
【发布时间】:2017-02-12 16:36:15
【问题描述】:

我正在尝试将 Identity Server 3 作为 IIS 10 中的单独应用程序托管。我添加了一个具有虚拟路径“/identity”的应用程序并将其指向我的调试目录。当我尝试浏览到“http://localhost/identity/.well-known/openid-configuration”时,我得到“HTTP 错误 404.0 - 未找到”。调试目录中的项目在 Visual Studio 2015 下作为独立服务器运行得非常好。我的想法已经用完了。

顺便说一句,我已经退出 SSL 并暂时关闭了 https,以减少潜在问题。

身份服务器日志:

w3wp.exe Warning: 0 : 2016-10-04 13:44:23.940 +01:00 [Warning] AuthorizationCodeStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.950 +01:00 [Warning] TokenHandleStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] ConsentStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] RefreshTokenStore not configured - falling back to InMemory
w3wp.exe Information: 0 : 2016-10-04 13:44:24.346 +01:00 [Information] {
  "Category": "Information",
  "Name": "Signing certificate validation success",
  "EventType": "Information",
  "Id": 4012,
  "Details": {
    "SigningCertificateName": "CN=identityServer",
    "SigningCertificateExpiration": "2019-12-31T23:00:00+00:00"
  },
  "Context": {
    "TimeStamp": "2016-10-04T12:44:24.2176795+00:00",
    "ProcessId": 3888,
    "MachineName": "NAME_CHANGED"
  }
}   

IIS 日志:

2016-10-04 13:04:42 ::1 GET /identity/.well-known/openid-configuration - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/51.0.2704.79+Safari/537.36+Edge/14.14393 - 404 0 2 0

任何帮助将不胜感激。顺便说一句,这是一台新机器,所以我从头开始安装 IIS - 这总是给我带来无穷无尽的问题。

【问题讨论】:

    标签: owin identityserver3 iis-10


    【解决方案1】:

    我找到的解决方案是将 Identity Server 3 部署在网站的根目录(在我的情况下为默认网站),而不是在应用程序中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-07
      • 2017-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-21
      相关资源
      最近更新 更多