XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
118 stars 119 forks source link

Bankfeed scopes not allowed #475

Closed pngan closed 1 year ago

pngan commented 1 year ago

Hi Guys, I registered my app for testing using https://localhost/* for the company url and redirect_url. It seems that the client created is not permitted to use the finance scopes. When the app runs, and after the button "Connect to Xero" is pressed, the user receives a 500 error, "Invalid scopes for client". Receiving a 500 error is off-putting for a new dev trying out the app.

I would suggest removing the bank feeds parts from the demo. I.e. removing

In a similar vein, the bank feeds parts of the app return 401 AuthorizationUnsuccessful probably for a similar reason.

rlayhbrian commented 1 year ago

Hello @pngan thank you for the suggestion. I believe you are talking about the sample app for dotnet sdk. I will make a quick update on this and remove the finance scopes in the appsettings.json file. However, we won't remove the bankfeed and finance controllers and views as there are some finance app developers who would like to have access to those example codes once they are qualified as financial app partners.