From 1ec923dc1fd9b3593bc314b9947a094a487155d5 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 2 Jul 2026 01:03:19 +0000 Subject: [PATCH] Workforce test: use department scope 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 8e25b68..bde78d5 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: 'me department' }).toString(), + body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password, scope: 'department' }).toString(), signal: AbortSignal.timeout(8000), }) if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)