我成功地将我的身份验证服务器与资源服务器分开了。现在我面临着管理用户帐户的挑战。即创建新帐户,删除用户,更新用户等。我无法访问AuthServer上的AccountController。我确实遇到了Scott Brady的Identity Manger Tutorial,我尝试过本教程,但是我遇到了以下错误的兼容性问题:
Errors in C:\Users\Julius\Documents\Projects\School\Development\In Progress\1\ReportBook\ReportBook.Auth\ReportBook.Auth.xproj
Package IdentityManager.AspNetIdentity 1.0.0-beta5-1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package IdentityManager.AspNetIdentity 1.0.0-beta5-1 supports: net45 (.NETFramework,Version=v4.5)
Package IdentityManager 1.0.0-beta5-5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package IdentityManager 1.0.0-beta5-5 supports: net45 (.NETFramework,Version=v4.5)
Package Microsoft.AspNet.Identity.Core 2.2.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.AspNet.Identity.Core 2.2.1 supports: net45 (.NETFramework,Version=v4.5)
Package Owin 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Owin 1.0.0 supports: net40 (.NETFramework,Version=v4.0)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
Package IdentityManager.AspNetIdentity 1.0.0-beta5-1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win10-x64. Package IdentityManager.AspNetIdentity 1.0.0-beta5-1 supports: net45 (.NETFramework,Version=v4.5)
Package IdentityManager 1.0.0-beta5-5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win10-x64. Package IdentityManager 1.0.0-beta5-5 supports: net45 (.NETFramework,Version=v4.5)
Package Microsoft.AspNet.Identity.Core 2.2.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win10-x64. Package Microsoft.AspNet.Identity.Core 2.2.1 supports: net45 (.NETFramework,Version=v4.5)
Package Owin 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win10-x64. Package Owin 1.0.0 supports: net40 (.NETFramework,Version=v4.0)
One or more packages are incompatible with .NETCoreApp,Version=v1.0 (win10-x64).
我喜欢使用和角度2作为构建用户帐户管理系统的前端。
答案 0 :(得分:1)
不幸的是,IdentityManager仅适用于ASP.NET 4.x.如果您正在使用Core / IdentityServer4,那么您将不得不为您的身份管理系统构建自己的一套CRUD API。