Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

OAUTH2 Beta - Access Denied

Started by Yannick Grant -   in API Authentication

Hi,

We get the following error message when trying to exchange the code using the new OAUTH 2.0 Beta

Access Denied
You don't have permission to access "http://identity.xero.com/connect/token" on this server.
Reference #18.5d0a7c68.1569937436.7ede000

Any idea on what would cause this?

Regards
Found the source of the problem. Was using http://127.0.0.1:xxxx as the redirect_uri (code and Xero app OAuth 2.0 redirect URI field). Instead, use http://localhost:xxxx or any https uri.

regards,
 

Yannick Grant  

I am also facing this issue. We are using https as the redirect uri but it still gives the following error message when trying to exchange the code using the new OAUTH 2.0

Access Denied
You don't have permission to access "http://identity.xero.com/connect/token" on this server.
Reference #18.5d0a7c68.1569937436.7ede000

Appreciate if anyone can point us to the solution. Thanks.
 

Marcus Lim