Skip to content

feat: turnkey compose environment for testing the LDAP and OIDC auth backends#295

Open
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:feat/compose-auth-test-services
Open

feat: turnkey compose environment for testing the LDAP and OIDC auth backends#295
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:feat/compose-auth-test-services

Conversation

@allamiro

@allamiro allamiro commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #312.

What

Optional openldap and keycloak services in docker-compose.yml for testing the LDAP and OIDC auth backends — disabled by default, enabled by removing the comment markers from the block you need. Matching config.yml snippets are documented inline.

  • .env.example holds all example credentials (LDAP root/admin/test user, Keycloak admin, OIDC client id/secret); cp .env.example .env and compose picks it up automatically (.env is gitignored)
  • Keycloak is pre-provisioned: start-dev --import-realm imports tests/keycloak/realm.json — realm keepass, confidential client keepass4web with the /callback_user_auth redirect URIs, and user testuser/testpass. OIDC is testable with zero admin-console setup
  • OpenLDAP is seeded with the test user from .env

Validation (all live)

…backends

Optional OpenLDAP and Keycloak services in docker-compose, disabled by
default; uncomment a block to enable it. Example credentials live in
.env.example (copy to .env, which is gitignored).

The keycloak service imports tests/keycloak/realm.json on startup:
realm 'keepass', confidential client 'keepass4web' with the
/callback_user_auth redirect URI, and user testuser/testpass - both
backends are testable with zero manual setup.
@allamiro allamiro force-pushed the feat/compose-auth-test-services branch from fe30e0f to 890b288 Compare June 13, 2026 00:39
@allamiro allamiro changed the title feat: optional OpenLDAP and Keycloak compose services for auth testing feat: turnkey compose environment for testing the LDAP and OIDC auth backends Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turnkey auth test environment: pre-provisioned Keycloak realm, .env.example, OIDC e2e verification

1 participant