fix: support local workshop authentication

This commit is contained in:
Thomas Camlong committed 2026-07-14 01:21:53 +02:00
1 parent c72e4d6dfe
commit 55ba12473c
13 files changed
+42 -6

No files matched your search

@@ -9,6 +9,12 @@ assert(baseUrl && superuserEmail && superuserPassword, "Workshop integration tes
const root = new PocketBase(baseUrl);
await root.collection("_superusers").authWithPassword(superuserEmail, superuserPassword);
const authMethods = await root.collection("users").listAuthMethods();
assert.equal(authMethods.oauth2.enabled, true, "GitHub OAuth must be configured from the runtime environment");
assert.deepEqual(
authMethods.oauth2.providers.map((provider) => provider.name),
["github"],
);
const createUser = async (name, role = "member", state = "active") => {
const password = `Workshop${name}Password123!`;