We are looking build integration for few of our Xero customers. This integration would be seamless for end user i.e. they won't have to log into Xero they will use our system, for certain use-cases, and we will make relevant api calls. With Xero's OAuth 1.0a this is feasible with Private app as authentication works with public-private key pair.
With OAuth 2.0 in Xero it seems only Authorization code grant flow is supported, document : https://developer.xero.com/documentation/oauth2/auth-flow
This would require user to sign into the Xero account each time they use our application. Alternative could be that sign user sign in happens one off when configuring the integration and we would subsequently use refresh token to fetch new token (before toke expires which is 12 minutes) and keep using it seamlessly.
Can Xero guys please confirm if above approach would work ?
Cheers, JK