私はASP.Net CoreとIdentity Server 4を使用しているプロジェクトで作業しています。このプロジェクトでは、Identity Serverモデルを格納するためにEntity Framework Coreを使用しています。IdentityServer 4モデルを拡張することはできますか?
たIdentity Serverは、独自のDbContexts(ConfigurationDbContextとPersistedGrantsDbContext)を生成し、これらのコンテキストがそうのように、プロジェクトのスタートアップファイルに注入されています目的のために
Startup.cs
var identityServer = services.AddIdentityServer()
.AddTemporarySigningCredential()
.AddConfigurationStore(builder => builder.UseSqlServer(connectionString,
options => options.MigrationsAssembly(migrationsAssembly)))
.AddOperationalStore(builder => builder.UseSqlServer(connectionString,
options => options.MigrationsAssembly(migrationsAssembly)))
.AddAspNetIdentity<ApplicationUser>()
.AddProfileService<IdentityProfileService>();
プロジェクトのすべてのモデルでは、更新時に並行性の問題を検出するために、行バージョンのプロパティを使用します。モデル
/// <summary>
/// Concurrency stamp for model
/// </summary>
[Timestamp]
public byte[] RowVersion { get; set; }
質問は、中
プロパティ定義は、どのように我々はIdentityServer 4のデフォルトモデルを拡張することができますか?また、それらのモデルを拡張しようとする必要がありますか?
私はアドバイス、提案や選択肢がありません。
ありがとうございます。