Hi benjharvey01
OAuth 2.0 Google Authenticator
' Developed by Kyle Beachill
' licence: MIT (http://www.opensource.org/licenses/mit-license.php)
' Inspired loosely by Tim Halls authentication classes in his Excel-Rest library:
' https://github.com/timhall/Excel-REST
' Features:
' Simple class to handle Google OAuth 2.0 Authentication
' Follows the Installed Application Flow
' Returns Simply the value for the Authorization header in API requests
'
' Gotchas:
' Tokens are held in plain text in the registry
'
' Required References:
' - Microsoft Internet Controls
' - Microsoft XML
I had a quick look at it - it does the job but, again, you are relying on someone else's code and when MYOB changes things you end up have to try to fix someone else's code ...... so you might be best to adapt this code to your use.
Note tokens stored in plain text in registry ....... that maybe a big security problem for a public app but if just yourself ... likely ok ...... I backend all this important security stuff into an MSSQL BE which can be encrypted nowadays. You can add your own encryption but that also has risks - again there are ways to do this.
Hope this helps.
1 Sept tomorrow - watch out with new scope requirement for MYOB API calls.
The Doc