archim / access
Access: accounts identified by their OpenID Connect issuer and subject, the party they act for, roles as sets of the modules' permissions and grants, for ArchIM's modules
dev-master
2026-12-04 20:32 UTC
Requires
- php: ^8.5
- archim/common: ^0.1
- archim/messaging: ^0.1
- beberlei/assert: ^3.3.2
- doctrine/dbal: ^4.0
- ecotone/dbal: ^1.328.3
- ecotone/ecotone: ^1.328.3
- ecotone/enqueue: ^1.328.3
- ecotone/pdo-event-sourcing: ^1.328.3
- queue-interop/queue-interop: ^0.8.1
- ramsey/uuid: ^4.9
Requires (Dev)
- archim/access-contract: ^0.1
- archim/party-contract: ^0.1
- archim/testing: ^0.1
- phpunit/phpunit: ^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 20:33:03 UTC
README
Accounts and permissions in ArchIM: who may call a module's API, on behalf of which party, and what they may do. Sign-in stays with any OpenID Connect provider; Access keeps the accounts, the roles and the grants, and tells every module through its public events.
What it answers
- Which account signs in with this issuer and subject, is it active, and which party does it act for?
- Which roles does an account hold, everywhere or on one resource, and which permissions do they give?
- Which permissions does each module define, and which roles hold them?
What it provides
- Accounts of people and machine clients, identified by their issuer and subject, registered by an administrator, by invitation through the issuer's provider directory or on first sign-in at a trusted issuer (awaiting activation unless the issuer activates its accounts at once); activated, suspended and linked to a party Access knows from Party's public events. Event sourced.
- Roles as named sets of permissions, the shipped
administrator,editorandvieweramong them, and grants of a role everywhere or on one resource. - The modules' permission catalogues, received over the Distributed Bus at every deploy: a permission new to a module joins its default roles, a permission no longer in a catalogue leaves every role.
- The provider directory as a port (invite, disable, enable, credentials reset) with an in-memory adapter; Keycloak's
adapter is
archim/access-keycloak. - Read models of accounts, grants, roles and catalogues, and public events of accounts, grants and roles.
Documentation
- Identity and access in the target model: model, published language and decisions.
- Using a module: wiring, database, processes and integration.
archim/access-contract: the JSON Schemas of its messages.- Decision: Access, accounts and permissions with any OpenID Connect provider.
License
Apache License 2.0: see the LICENSE file.