Repository navigation
Check the uniqueness of sub-attributes, and let the storages choose new identifiers - #17
Merged
Merged
Conversation
The storages follow the uniqueness contract of scim2-server 0.10.0. A unique sub-attribute, such as emails.value, is checked, and so is each value of a unique multi-valued attribute. Per RFC 7643 erratum 8279, a value is looked for in every resource type whose schema holds it. A mapping refuses a unique attribute that clients never read back, as a 409 would tell that another resource holds the value. An update deletes the old entries of a Many before it inserts the new ones, so a unique index that the application adds to their table accepts a resource keeping its value.
SqlAlchemyStorage.generate_id returns the identifier of a new resource, or None to let the column give one. The asynchronous storage awaits it, so it can take the identifier from another service. A chosen identifier that another resource holds raises a 409.
azmeuk
enabled auto-merge
November 28, 2026 07:54
Documentation build overview
7 files changed ·
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
emails.value. Each value of a multi-valued attribute counts on its own.generate_idto choose the identifier of a new resource. The asynchronous storage awaits it, so the identifier can come from another service. A taken identifier gets a 409.