Skip to content

Build your personal knowledge base with Trilium Notes

test(oauth): add a second Authelia user to verify per-account binding

Elian Doran586a0c8559d3
diff --git a/apps/server/docker/authelia/config/users_database.yml b/apps/server/docker/authelia/config/users_database.yml
index bb7b897565..1a4ad83615 100644
--- a/apps/server/docker/authelia/config/users_database.yml
+++ b/apps/server/docker/authelia/config/users_database.yml
@@ -1,7 +1,10 @@
# DEV ONLY test users for the Authelia OIDC reproduction setup.
#
-# Login: username testuser
-# password authelia
+# Two accounts, both with password "authelia", so you can test that binding an
+# SSO identity is scoped per-account (sign in as one, bind, then verify the other
+# is treated as a distinct identity):
+# username testuser password authelia
+# username testuser2 password authelia
#
# The argon2id hash below is for the password "authelia". Regenerate with:
# docker compose exec authelia authelia crypto hash generate argon2 --password 'yourpassword'
@@ -13,3 +16,10 @@ users:
groups:
- 'admins'
+ testuser2:
+ disabled: false
+ displayname: 'Test User Two'
+ password: '$argon2id$v=19$m=65536,t=3,p=4$qQd8abEKDMNXIviIrwpiwg$JGj/Q1QkXJBhViqh7t4hy+QYt0y7rkh2+PuqZm0wcpc'
+ groups:
+ - 'admins'