![](/img/trans.png)
[英]User registration using ASP.NET Identity v3 - users and database are not created
[英]thinktecture identity server v3 managing users in Asp.Net Identity v2
我想將Identity Server v3用作幾個內部Web應用程序的中央身份驗證點,並且希望將Asp.Net Identity 2用作用戶和相關聲明的存儲庫。 我已經將兩者連接在一起,當我通過其中一個社交提供程序進行身份驗證時,可以看到創建並填充了Asp.Net Identity數據庫。
更新 :
我無法呈現Identity Manager UI。 當我嘗試導航到https://localhost:44333/#/users/create
,它僅顯示/index.html
的內容。Thinktecture Identity Manager軟件包已按要求安裝,但是找不到通往UI。
這是我的Host項目中Startup類的Configuration方法:
public void Configuration(IAppBuilder app)
{
app.Map("/core", coreApp =>
{
var factory = new Thinktecture.IdentityManager.Host.AspNetIdentityIdentityManagerFactory("AspId");
coreApp.UseIdentityManager(new IdentityManagerConfiguration()
{
IdentityManagerFactory = factory.Create,
});
var idsrvOptions = new IdentityServerOptions
{
IssuerUri = "https://idsrv3.com",
SiteName = "Thinktecture IdentityServer v3 - beta 3",
Factory = Factory.Configure("AspId"),
SigningCertificate = Cert.Load(),
CorsPolicy = CorsPolicy.AllowAll,
CspOptions = new CspOptions
{
ReportEndpoint = EndpointSettings.Enabled,
},
AuthenticationOptions = new AuthenticationOptions
{
IdentityProviders = ConfigureIdentityProviders,
}
};
coreApp.UseIdentityServer(idsrvOptions);
});
這可能很簡單。 任何幫助,不勝感激。
斯科特
我的網址應該是/core/#/users/create
。 現在可以使用了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.