XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
93 stars 65 forks source link

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

Closed surbhi-brightness closed 2 years ago

surbhi-brightness commented 2 years ago

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

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

Expected behavior

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

pumpkinball commented 2 years ago

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

Aplear commented 2 years ago

The same issue

Aplear commented 2 years ago

The same with postman Xero-GrandType_AuthCode

pumpkinball commented 2 years ago

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?

surbhi-brightness commented 2 years ago

@pumpkinball Yes!

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

surbhi-brightness commented 2 years ago

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

pumpkinball commented 2 years ago

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

Aplear commented 2 years ago

Hi @pumpkinball All has been fine a week ago.

Aplear commented 2 years ago

It dose not work with ngrok

RettBehrens commented 2 years ago

Could you try localtunnel as an alternative to ngrok?

pumpkinball commented 2 years ago

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