Operational Options
Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions
Section titled “Duende.IdentityServer.EntityFramework.Options.OperationalStoreOptions”These options are configurable when using the Entity Framework Core for the operational store:
You set the options at startup time in your AddOperationalStore method:
builder.Services.AddIdentityServer() .AddOperationalStore(options => { // configure options here.. })Pooling
Section titled “Pooling”Settings that affect the DbContext pooling feature of Entity Framework Core.
-
EnablePoolingGets or set if EF DbContext pooling is enabled. Defaults to
false. -
PoolSizeGets or set the pool size to use when DbContext pooling is enabled. If not set, the EF default is used.
Schema
Section titled “Schema”Settings that affect the database schema and table names.
-
DefaultSchemaGets or sets the default schema. Defaults to
null.
TableConfiguration settings for each individual table (schema and name) managed by this feature:
PersistedGrantsDeviceFlowCodesKeysServerSideSessions
Persisted Grants Cleanup
Section titled “Persisted Grants Cleanup”Settings that affect the background cleanup of expired entries (tokens) from the persisted grants table.
-
EnableTokenCleanupGets or sets a value indicating whether stale entries will be automatically cleaned up from the database. This is implemented by periodically connecting to the database (according to the TokenCleanupInterval) from the hosting application. Defaults to
false. -
RemoveConsumedTokensGets or sets a value indicating whether consumed tokens will be included in the automatic clean up. Defaults to
false. -
TokenCleanupIntervalGets or sets the token cleanup interval (in seconds). The default is
3600(1 hour). -
TokenCleanupBatchSizeGets or sets the number of records to remove per batch operation. The cleanup job will perform multiple batch operations as long as there are more records to remove than the configured
TokenCleanupBatchSize. Defaults to100. -
FuzzTokenCleanupStartThe background token cleanup job runs at a configured interval. If multiple nodes run the cleanup job at the same time there will be updated conflicts in the store. To avoid that, the startup time can be fuzzed. The first run is scheduled at a random time between the host startup and the configured TokenCleanupInterval. Subsequent runs are run on the configured TokenCleanupInterval. Defaults to
true