Azure Table Storage stores for Identity Server 3
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/IdentityServer3.Contrib.Store.AzureTableStorage
.gitattributes
.gitignore
IdentityServer3.Contrib.Store.AzureTableStorage.sln
LICENSE
fake.bat
fake.fsx
readme.md

readme.md

Azure Table Storage Store for Identity Server 3

This project implement different stores for Identity Server 3 using Azure Table Storage as the data store.

Currently implemented

  • Refresh Token Store
  • Authorization Code Store
  • Client Store

Planned

  • Scope Store
  • Consent Store

How to use

To use download the nuget package.

Once you have the nuget package installed setup the factory.

var connectionString = ConfigurationManager.ConnectionStrings["AzureTableStorage"].ConnectionString;
var clientStore = new AzureTableStorageClientStore(connectionString);

var refreshTokenStore = new AzureTableStorageRefreshTokenStore(clientStore, scopeStore, connectionString);
var authorizationTokenStore = new AzureTableStorageAuthorizationCodeStore(clientStore, scopeStore, connectionString);

var factory = new IdentityServerServiceFactory
{
    ClientStore = new Registration<IClientStore>(clientStore),
    RefreshTokenStore = new Registration<IRefreshTokenStore>(_ => refreshTokenStore),
    AuthorizationCodeStore = new Registration<IAuthorizationCodeStore>(_ => authorizationTokenStore)
    // other setup omitted
};