ravendb / IdentityServer4.Contrib.RavenDB

MIT License
9 stars 3 forks source link

Use document prefixes per collection #5

Closed lahma closed 4 years ago

lahma commented 4 years ago

After trying out different scenarios with the current version after latest update I found some nasty corner cases. For example IdentityServer can try to load all things based on scopes which caused confusion between collections. This PR adds collection prefix for document ids and keeps the uniqueness via the name. Now it's possible also to name, say identity resource and client, with the same name.

Decided to go with index queries instead of direct loads for now. Added more test coverage to fill missing bits.

DejanMilicic commented 4 years ago

Thanx @lahma