Skip to content

mcrio/Mcrio.OpenIdDict.RavenDb.Store

Repository files navigation

WORK IN PROGRESS !!

Dev NOTES:

  • Token Reference ID must be unique when set. Using semantic ID with atomic guards due to Prune problems and reference documents update: not atomic guards usage due to not being removed automatically by delete by query, optimistic concurrency, relying on library, loading before store, worst case scenario a new document with same reference if will overwrite the existing one
  • Delete by query does not support map-reduce indexes. We need to output the authorizations index to a collection in order to run the query to prune tokens. see ravendb/ravendb#14496

OpenIDDict on RavenDB

Implementation of the OpenIdDict stores for the RavenDB database.

Getting Started

NuGet Package

Usage

RavenDB Static Indexes

Simple usage

Classes

Unique values

Unique values are stored as separate documents with atomic guards. In cases where unique values are handled the transaction mode will be set to cluster-wide as that is the requirement for atomic guards.

ID generation

By default, set to null which implies HiLo identifier generation.
Refer to official RavenDB document about identifier generation strategies.
When token reference id is not null, that reference id becomes part of a semantic id.

Multi-tenant guidelines

Release History

Meta

Nikola Josipović

This project is licensed under the MIT License. See License.md for more information.

Do you like this library?

₳ ADA | Buy me a coffee or two :)
addr1q87dhpq4wkm5gucymxkwcatu2et5enl9z8dal4c0fj98fxznraxyxtx5lf597gunnxn3tewwr6x2y588ttdkdlgaz79spp3avz

Ξ ETH | ...a nice cold beer :)
0xae0B28c1fCb707e1908706aAd65156b61aC6Ff0A

฿ BTC | ...or maybe a good read :)
bc1q3s8qjx59f4wu7tvz7qj9qx8w6ktcje5ktseq68

Happy if you stake ADA with Pale Blue Dot [PBD]
https://palebluedotpool.org

About

OpenIdDict stores based on the RavenDB database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages