【发布时间】:2019-07-21 05:47:41
【问题描述】:
我正在尝试将 IdentityServer4 与持久数据库一起使用。我有一个 Oracle 数据库。我正计划扩展 ConfigurationDbContext 和 PersistedGrantDbContext 以便进行一些特定于 Oracle 的定制。
PersistedGrantDbContext
public class IdentityPersistedGrantDbContext : PersistedGrantDbContext {
public IdentityPersistedGrantDbContext(DbContextOptions<PersistedGrantDbContext> options, OperationalStoreOptions storeOptions)
: base(options, storeOptions) {
}
}
ConfigurationDbContext
public class IdentityConfigurationDbContext : ConfigurationDbContext {
public IdentityConfigurationDbContext(DbContextOptions<ConfigurationDbContext> options, ConfigurationStoreOptions storeOptions)
: base(options, storeOptions) {
}
}
在启动类中,我是否告诉 IdentityServer 使用自定义类?
【问题讨论】:
标签: asp.net-core asp.net-identity identityserver4