Forum Discussion
I use c#/Hangfire to run jobs overnight etc ... not unlike your consol app/schedule task setup
How are you doing this? are you manually logging in each time a scheduled task runs?
As I understand it myob has not allowed oauth flow for software clients without user interaction?
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.
- kjm3 years agoTrusted Cover User
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...
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.