Search by

archim / access-keycloak

unixslayer

Keycloak as Access's provider directory: invites people, disables and enables them and sends credentials resets through Keycloak's administration API

dev-master 2026-12-04 20:32 UTC

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's ProviderDirectory for 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 sub of 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.
  • 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. Its issuer() is what Access's ProviderDirectories maps 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

License

Apache License 2.0: see the LICENSE file.