Workforce test: remove scope restriction to match auth service

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-02 01:08:31 +00:00
parent 1ec923dc1f
commit fa7222a4c8

View file

@ -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})`)