@astram/identity
v0.3.1
Published
Astram framework — the framework-owned identity + tenancy model. Hosts the identity @ObjectType classes (user, company, membership, posting), framework-authored identity migrations, and the identity resolver. Top of the dependency graph: depends on @astra
Downloads
99
Readme
@astram/identity
@astram/identity is the framework-owned home for Astram's identity and tenancy
model — the user, company, membership, and posting objects that every tenant
application is built on. It exists as its own package (rather than living inside
@astram/engine) because only a package positioned above @astram/engine in
the dependency graph can host @ObjectType/@Field-decorated classes without
creating a circular dependency: engine defines those decorators, so anything
that uses them to declare objects must depend on engine, not the other way
around. @astram/identity depends on @astram/engine (for the object-declaration
decorators) and on @astram/guard / @astram/core (for the authentication and
authorization ports the identity model plugs into). This package is the intended
destination for the identity model currently declared in consuming applications —
once relocated, apps declare only role-maps, extra columns, and session
extensions, while the canonical identity objects, migrations, and resolver live
here in the framework.
