This small tool aims to automate the creation of the long-term token for a Budget Insight application; the process is explain in the Budget Insight API docs. It's planned to be run locally and exposed with a tunnel system, like ngork.
First, an account and application are required on Budget Insight. Also, your callback URI need to be defined inside your app client configuration. More information here.
go build
./token-budget-insight -domain <domainName> -clientid <clientID> -yourcallbackuri <hostname>/callback -clientsecret <clientSecret>
After opening your web browser on localhost:8080, click on the WebView link and select your account inside the Budget Insight WebView then the token is displayed inside your page or your terminal. This access token is a long term token, more detail here.
go build
./token-budget-insight -domain test45-sandbox -clientid 12548 -yourcallbackuri https://website.com/callback -clientsecret fsfefR4fRghop5