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

+2
View File
@@ -15,6 +15,8 @@ cleanup
PB_EXPOSE_PORT="$port" \
PB_SUPERUSER_EMAIL="$email" \
PB_SUPERUSER_PASSWORD="$password" \
GITHUB_CLIENT_ID="integration-client" \
GITHUB_CLIENT_SECRET="integration-secret" \
docker compose --file apps/store/docker-compose.yml --project-name "$project" up --detach --build --wait
if ! WORKSHOP_TEST_URL="http://127.0.0.1:$port" \
@@ -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!`;