This is a user provider for Userli that uses Keycloak for authentication.
- Requirements: Docker, Docker Compose or Podman
-
Build the provider and start the KeyCloak, Userli and MariaDB containers:
podman compose up -d --build
-
Prepare data in Userli:
podman compose exec userli bin/console doctrine:schema:create podman compose exec userli bin/console doctrine:fixtures:load
-
Login to KeyCloak at http://localhost:8080 with the credentials
admin/admin. -
Add the new Provider to KeyCloak:
- Go to User Federation
- Click Add Userli-user-provider
- Type "Userli" as Name
- Type "example.org" as Domain
- Type "http://userli/" as Base URL
- Type "keycloak" as API token
- Click Save
-
Now you can login to KeyCloak with following users:
admin@example.org/passworduser@example.org/password