Forum Discussion
- I first removed Postman’s OAuth callback URL (https://oauth.pstmn.io/v1/callback) and left only two redirect URIs, both for internal applications. OAuth then started working. After that, I added another random redirect URI for the test environment, and OAuth continued to work.
- So the sequence was: 3 redirect URIs → 2 (worked) → 3 (still worked).
- As far as I can remember, I didn’t change anything else, including the codebase or MYOB scopes. So my initial thought is that MYOB fixed a server-side issue and that the redirect URI configuration was unrelated.
The timeline was:
- Around 11 a.m. on 11 Sep, I tried to set up MYOB OAuth for our new test environment. It wasn’t working, so I posted here.
- At around 5 p.m. the same day, OAuth started working normally again.
Working again here too.
Retested this morning — validateUser came back 200 in 1.67 seconds. On 4 September it was 504. Whole chain is clean.
Harvey_W , your posts were easily the most useful thing in this thread, MYOB included. And credit for the follow-up, because you disproved your own theory: 3 redirect URIs, then 2, then 3 again and still working. So it wasn't the redirect URIs for either of us. Something got fixed on their end, quietly, around the 11th.
Tip for anyone else stuck: validateUser fires when you pick the business file and grants nothing. Connect is what actually approves. So you can check whether it's working without touching your existing token — just stop before you press Connect.
Still waiting on MYOB for three things, and I'd like them even though I'm unblocked:
Does a new consent kill an existing refresh token? Asked three times since 4 September. This is the one that cost me most. I couldn't test whether it was fixed, so I sat blocked for about six days after it already was.
An incident number.
The idle lifetime on refresh tokens. I have the 12 month reconnect off the consent screen, but not whether there's a shorter idle expiry.
- Mike_James1 month agoUltimate Cover User
Hi Bonso , according to How long do access tokens & refresh tokens last? – Support for the MYOB family of SME product APIs since 2020 the refresh tokens last a week. (In 2020 that was reduced from 1 year). I'm not aware of any subsequent changes.
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Learn, solve, grow
Level up your skills and find answers across all MYOB products