MYOBCommunity
Partner Zone
|
|
Partner Zone

Non-interactive authentication in the cloud environment

5 REPLIES
API Evangelist KeranM
297 Posts
API Evangelist
Australia
KeranM
API Evangelist

297Posts

91Kudos

56Solutions

Re: Non-interactive authentication in the cloud environment

I've noticed that the forums are adding an space to the end of the bit.ly version of our Postman Collection - really annoying 

 

You can get to the collection here https://accountrightapi.myob.cloud/

Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
API Evangelist KeranM
297 Posts
API Evangelist
Australia
KeranM
API Evangelist

297Posts

91Kudos

56Solutions

Re: Non-interactive authentication in the cloud environment

Hey there

 

We had a DNS hiccup with the Postman link - it was resolved over the weekend.

 

Refresh Tokens can live for up to 1 year, however, we highly recommend capturing the new refresh token that will be given to you when you use each one. This way if we expire them sooner, you have the most recent valid token.

 

Most solutions are connecting to the API in the follow scenarios:

* real-time (point of sale, ecommerce, inventory tracking etc)

* end of day (Point of Sale, transaction sync, employee management type tools)

* Once a week (inventory, reporting, data sync tools)

* Once a month (monthly reporting tools)

* Once a quarter (some advisory tools)

 

If you are only connecting once a year - we'd want to talk to you about that use case.

Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
Partner ZapDev
2 Posts
Partner
ZapDev
Partner

2Posts

0Kudos

0Solutions

Re: Non-interactive authentication in the cloud environment

hi,

 

The link http://bit.ly/ARAPI_Postman_Collection  doesn't seem to work.

 

So to confirm, the refresh token never expires?

API Evangelist KeranM
297 Posts
API Evangelist
Australia
KeranM
API Evangelist

297Posts

91Kudos

56Solutions

Re: Non-interactive authentication in the cloud environment

Take a look at http://bit.ly/ARAPI_Postman_Collection 

There is a walk through video there showing how the connection works

 

* User does the OAUTH connection once

* After this your software will have ACCESS TOKENS - that allows your code to talk to MYOB platform for 20 mins

* If you need to reconnect after this, or run reports at 3am etc without the user around, you use the REFRESH TOKENS to get a fresh Access Token 

 

Hope that helps

Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
Trusted Partner Triboss
67 Posts
Trusted Partner
Triboss
Trusted Partner

67Posts

40Kudos

9Solutions

Re: Non-interactive authentication in the cloud environment

You only require the user to authenticate once. After that you use the refresh token to re-authenticate.

Partner ZapDev
2 Posts
Partner
ZapDev
Partner

2Posts

0Kudos

0Solutions

Non-interactive authentication in the cloud environment

Hi,

 

From the authentication documentation (http://developer.myob.com/api/accountright/api-overview/authentication/) it looks like the only way for an application to authenticate is to direct the user to MYOB to get the token etc.

 

1. Does MYOB support or plan to support non-interactive logins that use something like a token (for just this app) or just take the username/password along with the client ID? 

 

2. Using the current interactive login, what's the longest interval before the application has to get the user to re-authenticate again?

 

Thanks

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post