Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340255
D5882.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D5882.diff
View Options
diff --git a/docker/README.rst b/docker/README.rst
--- a/docker/README.rst
+++ b/docker/README.rst
@@ -695,7 +695,13 @@
~/swh-environment/docker$ docker-compose -f docker-compose.yml -f docker-compose.keycloak.yml up -d
[...]
+User registration in Keycloak database is available by following the Register link
+in the page located at http://localhost:5080/oidc/login/.
+Please note that email verification is required to properly register an account.
+As we are in a testing environment, we use a MailHog instance as a fake SMTP server.
+All emails sent by Keycloak can be easily read from the MailHog Web UI located
+at http://localhost:8025/.
Using Sentry
------------
diff --git a/docker/docker-compose.keycloak.yml b/docker/docker-compose.keycloak.yml
--- a/docker/docker-compose.keycloak.yml
+++ b/docker/docker-compose.keycloak.yml
@@ -2,6 +2,12 @@
services:
+ mailhog:
+ image: mailhog/mailhog
+ ports:
+ - "1025:1025"
+ - "8025:8025"
+
keycloak-db:
image: postgres:11
env_file:
diff --git a/docker/services/keycloak/keycloak_swh_setup.py b/docker/services/keycloak/keycloak_swh_setup.py
--- a/docker/services/keycloak/keycloak_swh_setup.py
+++ b/docker/services/keycloak/keycloak_swh_setup.py
@@ -104,6 +104,14 @@
"loginTheme": "swh",
"accountTheme": "swh",
"adminTheme": "swh",
+ "registrationAllowed": True,
+ "verifyEmail": True,
+ "smtpServer": {
+ "port": "1025",
+ "host": "mailhog",
+ "from": "keycloak-swh@docker",
+ "fromDisplayName": "Keycloak SWH @ docker",
+ },
},
skip_exists=True,
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 10:27 AM (5 w, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225025
Attached To
D5882: docker/keycloak: Enable users registration
Event Timeline
Log In to Comment