Skip to content

fix: send client credentials scopes using the correct OAuth parameter - #858

Open
muhammedRiyasck wants to merge 1 commit into
XeroAPI:masterfrom
muhammedRiyasck:fix/client-credentials-scope
Open

muhammedRiyasck wants to merge 1 commit into
XeroAPI:masterfrom
muhammedRiyasck:fix/client-credentials-scope

Conversation

@muhammedRiyasck

Copy link
Copy Markdown

Summary

Fixes #856.

  • Replace the incorrect scopes parameter with the OAuth-standard scope parameter.
  • Join multiple scopes using spaces instead of commas.
  • Add a regression test to verify the correct request body.

Validation

  • [✓ ] Full Jest test suite passes.
  • [✓ ] TypeScript build passes (npm run build).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getClientCredentialsToken() sends scopes (comma-joined) instead of the OAuth scope parameter

1 participant