Changelog#
[Unreleased]#
Added#
Entrystores a multi-valued attribute holding one entry at most, such as a work email, in columns of the resource record.meta.createdandmeta.lastModifiedare optional: without them, the resources have no such date.The
versionof aResourceMappingis optional. Without it,meta.versionis a hash of the resource, keyed with the newversion_keyof the storages.
Changed#
Needs scim2-server 0.9.0 or later.
The storages are built on the mapping core of scim2-server,
scim2_server.mapping, which scim2-django shares. Some error and warning messages of the mappings change.schemas()publishes an attribute that is never returned with the mutability of its schema, rather thanwriteOnly. A hidden sub-attribute of an immutable attribute keeps its own mutability.A
Linkrefuses a relationship to another class than the record of the mapping it links to.
[0.3.0] - 2026-11-26#
Added#
schemas()marks asrequiredan attribute whose column cannot beNULLand has no default.
Changed#
scim2-server 0.8.9 and scim2-models 0.12.7 or later are required.
The storage returns the values that clients never read back, write-only or never returned, in the form their column holds, such as a hash. It does not write again a value equal to the stored one. A PATCH that removes such a value, or a PUT that sets it to
null, clears it.Attributeno longer takesreadable: make the attributewriteOnlyin the schema.A mapping that worked in 0.2.0 can now raise a
ValueErrorfor an attribute that clients could neither read nor write, animmutableattribute on aHashedcolumn, aManyholding values the schema never returns, or aLinkwhose removal would writeNULLin a foreign key that refuses it.A mapping warns about a column that needs a value the storage never writes.
generate_mappings()stores no value of a multi-valued attribute that the schema never returns.
Fixed#
An attribute that clients never read back, or a complex attribute none of whose sub-attributes is returned, is published with
returnednever, aswriteOnlyunless it isimmutable, and never asrequired.The storage neither filters, sorts, nor checks the uniqueness of a value that clients never read back, and a link never displays it.
An attribute on a
Computedcolumn is read-only.A change that a foreign key of the database refuses gets a 409, rather than a 500 error.
[0.2.0] - 2026-11-24#
Added#
MariaDB 10.10 and later is supported. Strings compare by code point, as on PostgreSQL. The storage raises a
ValueErroron MySQL and on older versions of MariaDB.
Changed#
scim2-server 0.8.8 or later is required. A cursor that holds a sort value now raises
invalidCursoron a search withoutsortBy.A mapping that worked in 0.1.2 can now raise a
ValueError:a
Manycannot hold write-only values, and its sub-attributes are either all written or all read-only, since writing the resource replaces the entries;a string attribute is mapped to a column of strings or of bytes, or to a property casting another column, except for
id;idis mapped to a column that cannot holdNULL, or to a property.
A
SqlAlchemyStoragenow raises aValueErrorwhen its provider declares a resource type that no mapping stores.generate_mappings()gives no column to a write-only sub-attribute of a multi-valued attribute.
Fixed#
The read-only entries of a
Manyare no longer written.A new resource, or an entry, without a value that its column needs is refused with a 400 error, rather than a 500. A column needs a value when it cannot be
NULLand has no default.A string attribute in a column of another type no longer fails on each read: the mapping refuses it.
A filter on a UUID the database stores without hyphens, as SQLite does, such as
id sw "2819c223-", compares it in its form with hyphens.An identifier too large for its integer column finds nothing, rather than raising a 500 error. In a filter, an integer too large for its column compares as a number beyond every stored value. A cursor holding an integer no database stores is an invalid cursor, and so is a cursor whose sort value does not fit the sort column, rather than raising a 500 error.
A search at the root sorted on an attribute that the resource types store in different types is refused with a 400 error, rather than a 500.
An update only checks the unique values it changes, so a resource sharing a value with another one, under the case rules of SCIM, remains writable.
A new resource carrying the
idof another resource gets a 409 for its unique values, rather than a 500 error.A value that a unique constraint of the database refuses gets a 409, rather than a 500 error, even when the storage finds no other resource holding it.
On PostgreSQL, a filter on a boolean stored in a column of integers no longer raises a 500 error.
[0.1.2] - 2026-11-19#
Fixed#
Per RFC 7643 Section 2.1, paths in a
ResourceMappingare case insensitive. Two paths to the same attribute are refused, and so are an attribute and one of its sub-attributes.A single-valued attribute is refused when it is mapped to several
Link.A storage refused for a missing mapping no longer leaves its mappings partly bound.
[0.1.1] - 2026-10-21#
Changed#
Requires scim2-server 0.8.1.
Fixed#
The package imports without the
asyncioextra.
[0.1.0] - 2026-10-11#
Added#
Initial release:
SqlAlchemyStorageandAsyncSqlAlchemyStorageserve SQLAlchemy models to scim2-server. They filter, sort and page the resources in the database, withstartIndexor with the cursors of RFC 9865.ResourceMappingmaps the resources to existing SQLAlchemy models.generate_mappings()generates the tables and the mappings for a server without a database of its own.