Difficulty obtaining OAuth token

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
3 REPLIES 3
Highlighted
Contributing Partner
8 Posts
Contributing Partner
Australia
Contributing Partner

8Posts

0Kudos

0Solutions

Re: Difficulty obtaining OAuth token

Hi there, 

 

I am having the same issue, could you please share your solution?

 

Thanks

Highlighted
Partner
1 Post
Partner
Partner

1Posts

1Kudos

0Solutions

Re: Difficulty obtaining OAuth token

Hi there, 

 

Can you please share how you solved this? I am having a similar isssue now. 

 

Cheers,
Adam

Highlighted
Experienced Partner
19 Posts
Experienced Partner
Experienced Partner

19Posts

5Kudos

2Solutions

Accepted Solution Solved

Re: Difficulty obtaining OAuth token

SOLVED - thanks for looking

Highlighted
Experienced Partner
19 Posts
Experienced Partner
Experienced Partner

19Posts

5Kudos

2Solutions

Solved: Go to Solution

Difficulty obtaining OAuth token

Hi all - I'm having difficulty retrieving OAuth token.

 

I am able to get a "code" using https://secure.myob.com/oauth2/account/authorize?client_id=XXXXXXXXXXXXXXXXXXX&redirect_uri=http%3A%...

 

But then when I go to try and get an OAuth Token I'm just getting bounced.

 

Here's my Postman code:

 

POST /oauth2/v1/authorize/ HTTP/1.1
Host: secure.myob.com
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: b4be70ff-ff77-4a32-a9d8-066f0e102308

client_id=XXXXXXXXXXXXXXXXXXX&client_secret=XXXXXXXXXXXXXXXXXXXX&scope=CompanyFile&code=sziQ!I[[shortened for readability]]fkjR6l77vdgnDAIjZW1x4ZB&redirect_uri=http%253A%252F%252Flocalhost%252Fmyobredirect%252F&grant_type=authorization_code

 

I get:

 

{
"error": "invalid_request"
}

 

Anything obvious that I'm doing wrong?  Cheers

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