Description
Scopes in Xero's OAuth 2.0 implementation are additive.
If the first time a connection is authorised scopes A, B and C are requested, they will always be included.
On a second authorisation for the same user, if only scopes A and B are requested, C will also be returned.
The SDK appears to then do a validation check to verify the scopes returned match the ones requested, and the process fails.
To recreate:
- Set the scopes to include payroll.employees and complete the authorisation process for one user.
- Remove the payroll.employees and repeat the authorisation process for the same user.
- Observe the process fails with a Scope has changed from... error
Metadata
Metadata
Assignees
Labels
No labels