Authentication via API

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
1 REPLY 1
Contributing Partner SeanOng
5 Posts
Contributing Partner
Australia
SeanOng
Contributing Partner

5Posts

0Kudos

2Solutions

Accepted Solution Solved

Re: Authentication via API

Took me a while to figure it out!

 

Turns out that the code provided from the redirect must be url decoded.

 

The redirect_uri posted must also be in the decoded format.

Highlighted
Contributing Partner SeanOng
5 Posts
Contributing Partner
Australia
SeanOng
Contributing Partner

5Posts

0Kudos

2Solutions

Solved: Go to Solution

Authentication via API

I'm trying to perform authentication via the API. This is how I simulate the OAuth Flow:

 

I put the following URL in my browser:

 

https://secure.myob.com/oauth2/account/authorize?client_id=epfdhksr4u8svfjka7ukuqr3&redirect_uri=htt...

 

I'm redirected to the login page and I managed to login successfully. I use the code that was provided to me and put the following values into Postman (screenshot truncated). I can confirm that the redirect_uri and code has been URL encoded:. However, I'm getting this error:

 

{
"error": "invalid_request"
}

 

Is what I'm doing a valid way of authenticating?

 

Capture.PNG

 

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