Forum Discussion

kjm's avatar
kjm
Trusted Cover User
3 years ago

Scheduled Jobs and Login using OAuth2

I am running background jobs using  c#/Hangfire on a networked server connecting to myob

 

This runs a series of jobs on the hour and overnight. 

 

Problem is now that we are going online to connect to MYOB there will need to be a login before the job starts and can connect to MYOB. I have built the oauth connection for gettign the token using our inhouse app and that is fine but that has a user interaction to it..these background jobs do not as it is a machineto machine credential flow.

 

My understanding is that MYOB has not implemented this spec defined here RFC 6749: The OAuth 2.0 Authorization Framework (rfc-editor.org)

Client Credentials Flow (auth0.com)

 

How are others getting around this?  

  • Michael_K's avatar
    Michael_K
    Experienced Cover User

    Hi - just came across your posts re MYOB Online for STP 2 and using APIs.

     

    I'm in the same boat.

     

    We have a suite of inhouse built PHP apps on our local server which use MYOB API. Been solid for many years but now have to go online - such a pain.

     

    How has testing gone for you with API connecting to your company file online instead of local network?

     

    I'm going to start testing ASAP. My personal email is khatib.michael@gmail.com if you'd like to connect and share ideas.

Looking for something else?

Search the Community Forum for answers or find your topic and get the conversation started!

Community home

Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.