Authorisation Failing - Short Access Code
Hey guys,
I am trying to re-authenticate an existing client with our App however when we do the request to
https://secure.myob.com/oauth2/account/authorize?client_id=[YOUR API KEY]&redirect_uri=[URL_ENCODED_REDIRECT_URI]&response_type=code&scope=CompanyFile
We are returned an access code that seems to be a lot shorter than we have received with other clients in the past.
Access Code Received - ory_ac_1sc4FIfeH-u8dPoICPPgW0fUGYPPwapusZ5nn9SF5Kc.RXfPV8s03zS2LUwPw2Kj869gq3h4YGVzmT86Ra49NmI
When we post this to the https://secure.myob.com/oauth2/v1/authorize
We receive a HTTP 400 Bad Request. I am assuming this is due to the short access code and it is failing some validation on MYOB's end. And it is passing back a Bad Request Status.
Any help would be greatly appreciated.