I'm a bit of a newbie to using APIs, and in particular OAuth 2.0. I am trying to use Integromat to pull a financial report from the Xero API, but am stuck on trying to get the connection to work. This is the error I receive after selecting the organization I want to authenticate:
Here are the inputs I'm using in Integromat:
- Flow Type: Authorization Code
- Authorize URI: https://login.xero.com/identity/connect/authorize?response_type=code&client_id=MY_Client_ID&redirect_uri=https://www.integromat.com/oauth/cb/oauth2&scope=openid profile email accounting.reports.read&state=123
- Token URI: https://identity.xero.com/connect/token
- Client ID: My_Client_ID
- Client Secret: My_Client_Secret
Here is what my current setup looks like:
Addendum from original post:
When I click "Continue", I receive this screen:
When I click "Login" I come to this screen:
After selecting my organization from the dropdown and then clicking "Connect" I receive the aforementioned error.
Any help would be greatly appreciated.