XeroAPI/xero-php-oauth2

Access Denied to https://identity.xero.com/connect/token

surbhi-brightness opened this issue ยท 11 comments

SDK you're using (please complete the following information):

  • "xeroapi/xero-php-oauth2": "^2.17"

Describe the bug
A clear and concise description of what the bug is.

  • I am getting access denied s=issue while using "https://identity.xero.com/connect/token" for authorization.
    It was working perfectly before 2 days. Today my trial app got expired and I have created new app and now I am getting this error "Invalid response received from Authorization Server. Expected JSON."

Expected behavior

  • API should redirect once get authorization

Screenshots
If applicable, add screenshots to help explain your problem.
image

Hi @surbhi-brightness can I check please, can you run the request via Insomnia or Postman ok, using your existing clientId and secret?
https://developer.xero.com/documentation/guides/oauth2/auth-flow

The same issue

The same with postman
Xero-GrandType_AuthCode

Thanks @Aplear, it looks like it could be an issue related to ngrok.
Are you using ngrok on your development environment?
And @surbhi-brightness can you confirm you are also getting the error whilst using ngrok?

@pumpkinball Yes!

I am using ngrok and getting issue with ngrok only. Before 2 days it was working perfectly with ngrok.

@pumpkinball Do you have any idea about this?
It should work as it was working before

@surbhi-brightness We have raised it internally, and I will keep you posted on the progress :)
It may be a day or two.

Hi @pumpkinball All has been fine a week ago.

It dose not work with ngrok

Could you try localtunnel as an alternative to ngrok?

Hi @Aplear please can you log this issue now with api@xero.com and they should be able to jump on it.