Table of Contents

Class DapperStoreOptions

Namespace
Fdyay.IdentityServer.Dapper.Configuration
Assembly
Fdyay.IdentityServer.Dapper.dll

Options for the Dapper-backed stores.

public sealed class DapperStoreOptions
Inheritance
DapperStoreOptions
Inherited Members

Properties

ConnectionString

The ADO.NET connection string.

public string ConnectionString { get; set; }

Property Value

string

EnableTokenCleanup

Whether expired persisted grants are swept in the background. Defaults to false.

public bool EnableTokenCleanup { get; set; }

Property Value

bool

Remarks

Off by default because a host whose schema is managed elsewhere may not want the application issuing deletes. Leaving it off means something else has to prune the table — nothing else does it.

InitializeSchema

Whether the schema is created on startup. Defaults to true.

public bool InitializeSchema { get; set; }

Property Value

bool

Remarks

Set this to false where the schema is owned outside the application — a migration project or a DACPAC — so that the deployed schema stays the single source of truth and the application never writes DDL.

Provider

The database provider. Defaults to SQLite.

public DatabaseProvider Provider { get; set; }

Property Value

DatabaseProvider

RemoveConsumedTokens

Whether consumed grants are removed as well as expired ones. Defaults to false.

public bool RemoveConsumedTokens { get; set; }

Property Value

bool

Remarks

A consumed grant cannot be redeemed again, so keeping it only preserves the record that it was used. Turn this on where that record is not wanted and the table would otherwise keep every spent one.

Stores

Which stores to back with the database. Defaults to All.

public DapperStores Stores { get; set; }

Property Value

DapperStores

TokenCleanupInterval

How often the sweep runs. Defaults to one hour.

public TimeSpan TokenCleanupInterval { get; set; }

Property Value

TimeSpan