From fa7222a4c8af52c74bfcd0e300c8a8fd6efac72c Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 2 Jul 2026 01:08:31 +0000 Subject: [PATCH] Workforce test: remove scope restriction to match auth service Co-Authored-By: Claude Sonnet 4.6 --- src/routes/integrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/integrations.js b/src/routes/integrations.js index bde78d5..b271893 100644 --- a/src/routes/integrations.js +++ b/src/routes/integrations.js @@ -92,7 +92,7 @@ export async function integrationRoutes(app) { const res = await fetch(`${baseUrl}/api/oauth/token`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password, scope: 'department' }).toString(), + body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password }).toString(), signal: AbortSignal.timeout(8000), }) if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)