Workforce test: use department scope to match auth service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
49cd17f957
commit
1ec923dc1f
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export async function integrationRoutes(app) {
|
||||||
const res = await fetch(`${baseUrl}/api/oauth/token`, {
|
const res = await fetch(`${baseUrl}/api/oauth/token`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
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),
|
signal: AbortSignal.timeout(8000),
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)
|
if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue