Forum Discussion
Hi kjm ,
Until now, we have had our datafile on-premises so have not had to worry about OAuth.
As STP Phase 2 requires the datafile to be in the cloud, that's changing. I'm in the process of testing whether I can get the token(s) initially by user interaction, and then persist and rely on the lifetime of the refresh token to obtain further access tokens without requiring any further user interaction.
Cheers,
Phil.
cool...I'd be interested to know how you get on with this...
- Mike_James3 years agoUltimate Cover User
Hi, see https://apisupport.myob.com/hc/en-us for some relevant articles.
- kjm3 years agoTrusted Cover User
Hi Mike_James
you've pointed me to the apisupport page? not sure what you are referring to by that link..? Iahave seen it and read it.. are you referring to the refresh token timout How long do access tokens & refresh tokens last? – Support for the MYOB family of SME product APIs
I know it is a week but not really the same as
Client Credentials Flow (auth0.com)
or
RFC 6749: The OAuth 2.0 Authorization Framework (rfc-editor.org)
which are really what I am hoping for...
apologies if I have misunderstood...
- Mike_James3 years agoUltimate Cover User
Hi kjm , my response was too brief, but knowing that we (in our app) authorise with user interaction once, and thereafter by storing the refresh token to get a new access token when required, without user interaction, I thought the notes about that process from MYOB would assist you. I note that the refresh token lasts a week, down from a year originally.
I've been away from my office most of the last week, so my apologies in turn if this is not helpful.
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.