NuGet package | Owin.Framework.Facilities.TokenStore.Prius |
GitHub source | OwinFramework.Facilities.TokenStore.Prius |
This package provides an implementation of the ITokenStore interface using the Prius ORM to store tokens in a relational database.
The configuration below is the configuration you will get by default if you do not provide a configuration for this package.
{ "owinFramework": { "facility": { "tokenStore.prius": { "tokenTypes": null } } } }
To make this token store useful you need to define some token types with the rules to apply to each type of token. Below is an example configuration that demonstrates the layout of the configuration data.
{ "owinFramework": { "facility": { "tokenStore.prius": { "tokenTypes": [ { "name": "PasswordReset", "rules": [ "type": "Expiry", "config": "{ \"expiryTime\": 7 }", "type": "UseCount", "config": "{ \"maxUseCount\": 1 }" ] } ] } } } }
All token types implement the rules in addition to any rules defined in the configuration: