I'm trying to create a REST API Resource by connecting ReTool to Xero (accounting SaaS) using OAuth 2.0. Having configured the Authorization URL and suchlike I go to "Test OAuth integration". I'm successfully taken to Xero, which confirms the scopes. I click "Allow access" and, once redirected to ReTool, shown the error:
I worked this out with @NimbleBen through support. The problem was that the Xero OAuth flow needed an extra step to attach a tenant-id to the request headers.
Hey Jeremy! It does seem like we've had a few users run into trouble with Xero, so we did a bit of a deep dive into setting up the resource. It looks like we need to do this as a custom auth workflow to get the tenant id, and it is a bit involved of a process. Here is what our working setup looks like start to finish:
Firstly, thank you! That was. great help. Secondly, sorry for resurrecting an old post but did you ever implement the Auth Refresh Flow and if so would you mind posting the steps please?