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


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?

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


Yannick Grant