archim / access-keycloak
Keycloak as Access's provider directory: invites people, disables and enables them and sends credentials resets through Keycloak's administration API
Requires
- php: ^8.5
- archim/access: ^0.1
- beberlei/assert: ^3.3.2
- symfony/http-client-contracts: ^3.7
Requires (Dev)
- archim/testing: ^0.1
- phpunit/phpunit: ^13.0
- psr/clock: ^1.0
- symfony/http-client: ^8.0
- web-token/jwt-library: ^4.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 20:33:25 UTC
README
Keycloak as the provider directory of archim/access in ArchIM: what
Access asks of the people of a Keycloak realm, done through Keycloak's administration API.
What it provides
KeycloakDirectory, Access'sProviderDirectoryfor one realm:- an invitation finds the person by address, or creates them with the actions of setting a password and verifying
the address, and Keycloak mails them the actions they still have to take; a person who can already sign in gets
no mail. The subject Access registers is the user's Keycloak id, the
subof their tokens; - disabling and enabling a person, and a credentials reset Keycloak mails them;
- every operation can be repeated after a failure; a failure names the operation and Keycloak's answer, never the person's address.
- an invitation finds the person by address, or creates them with the actions of setting a password and verifying
the address, and Keycloak mails them the actions they still have to take; a person who can already sign in gets
no mail. The subject Access registers is the user's Keycloak id, the
KeycloakRealm: where the administration API is reached, the realm, the confidential client Access signs in with, how long an invitation stays valid, and the public URL of the tokens' issuer when it differs from the server URL. Itsissuer()is what Access'sProviderDirectoriesmaps to the directory.
The client Access signs in with is a confidential client with a service account holding manage-users and
view-users of realm-management, and the kc-admin-api client scope among its default scopes, without which
Keycloak's administration API refuses its token. The Keycloak of the local environment imports such a realm
(docker/keycloak in the repository).
Documentation
- Identity and access in the target model: Access, its provider directory and its providers.
- Decisions: Access, accounts and permissions with any OpenID Connect provider; provider adapters in packages of their own.
License
Apache License 2.0: see the LICENSE file.