MYOBCommunity
Partner Zone
|
|
Partner Zone

Difficulty obtaining OAuth token

2 REPLIES
Partner AdamR
1 Post
Partner
AdamR
Partner

1Posts

0Kudos

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

Experienced Partner kiwinode
19 Posts
Experienced Partner
kiwinode
Experienced Partner

19Posts

5Kudos

2Solutions

Accepted Solution Solved Solution

Re: Difficulty obtaining OAuth token

SOLVED - thanks for looking

Highlighted
Experienced Partner kiwinode
19 Posts
Experienced Partner
kiwinode
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