2017-02-05 4 views
0

認証サーバーとリソースサーバーが正常に分離されました。今、私はユーザーアカウントを管理するという課題を抱えています。つまり、新しいアカウントを作成する、ユーザーを削除する、ユーザーを更新する、など。AuthServerのAccountControllerにアクセスできません。私はスコット・ブレイディによってIdentity Manger Tutorial渡って来た、私はこのチュートリアルを次みましたが、私は次のエラーでの互換性の問題に遭遇:ユーザアカウントを作成するには、フロントエンドとしてIdentityServer 4ユーザーアカウント管理

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マネジメントシステム。

答えて

1

残念ながら、IdentityManagerはASP.NET 4.xでのみ動作します。 Core/IdentityServer4を使用している場合は、ID管理システム用に独自のCRUD APIを構築する必要があります。

+0

ありがとう、私はそれを試して、いくつかの認証と認証の後、私はAuthServerにユーザーを管理するためのコントローラがある要求を送信できません。私はリソースサーバーでこれをやろうとしましたが、UserManagerの注入に問題がありました。私は、しかし、ApplicationDBContextを注入することができますここに直接コンテキストを使用することができますが、私はUserManagerを使用して行われているようにユーザーアカウントを作成する方法を見つけるように思えます。私はいったん私が認証し、リソースサーバー上のリソースにアクセスできると私は認証サーバーで同じことができるはずだという意見でした。 –

関連する問題