Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

403:AuthenticationUnsuccessful Error

Started by Sam Easton -   in API Authentication


I've checked, on server - callback, code and state are being received,

I've only one organization.. which I am selecting .. and only one App .. I've tried it with multiple trials and paid accounts

I have VM on an IP with HTTPS (raw IP, not a domain like www.domain.com)... is it causing the problem.. It is working fine in local machine ...

Is the absence of proper domain name causing the error ..pls help

I've tried this,

var xeroToken = (XeroOAuth2Token)await _XeroClient.RequestXeroTokenAsync(code);

List Tenant tenants = await _XeroClient.GetConnectionsAsync(xeroToken)
Tenant firstTenant = tenants |0|