XeroAPI / xero-php-oauth2

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

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

Closed surbhi-brightness closed 1 year ago

surbhi-brightness commented 1 year 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 1 year 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 1 year ago

The same issue

Aplear commented 1 year ago

The same with postman Xero-GrandType_AuthCode

pumpkinball commented 1 year 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 1 year 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 1 year ago

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

pumpkinball commented 1 year 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 1 year ago

Hi @pumpkinball All has been fine a week ago.

Aplear commented 1 year ago

It dose not work with ngrok

RettBehrens commented 1 year ago

Could you try localtunnel as an alternative to ngrok?

pumpkinball commented 1 year ago

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