2016-05-16 115 views
4

我試圖與IdentityServer 4一起工作。 現在我用這個鏈接https://github.com/IdentityServer/IdentityServer4.Samples爲例。身份服務器4使用IIS

我的問題是使用 http://localhost:22530/ IdentityServer裝載和作品,但是用它作爲託管網站上我的IIS http://identity.test.dev下它沒有加載。

我已經試着運行這個例子的代碼https://github.com/IdentityServer/IdentityServer4.Samples/tree/dev/Mvc/src/IdSvrHost,它不起作用。

如何通過http://identity.test.dev在IIS下啓動IdentityServer?

+0

您http://identity.test.dev難道不加載呢? – Lrrr

回答

4

看起來像我解決了我的問題。

例如,當沒有所有文件夾和文件被標記爲在發佈過程中複製。這就是爲什麼我添加它們,請參閱下面的代碼:

project.json

"publishOptions": { 
    "include": [ 
    "wwwroot", 
    "UI", 
    "damienbodserver.pfx", 
    "web.config" 
    ]}