Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

java partner application authentication error 403

Started by Stanislav Semakin -   in API Authentication

I am having some troubles trying to connect to Xero as a partner application from Java i.e. I get a 403 error. I have taken the following steps:

- imported the p12 file (Xero Entrust certificate) into a Java Key Store
- set the keystore as default keystore and trust store : -Dhttps.keyStore=certs/loc.jks -Dhttps.trustStore=certs/loc.jks
- used the private key (self-signed) and RSA SHA1 when using OAuth :
val consumer = new OAuthConsumer(null, consumerKey, null, null)
consumer.setProperty(RSA_SHA1.PRIVATE_KEY, privateKey)
consumer.setProperty(OAuth.OAUTH_SIGNATURE_METHOD, OAuth.RSA_SHA1)

val accessor = new OAuthAccessor(consumer)
accessor.accessToken = consumerKey
accessor.tokenSecret = consumerSecret

Is there is something obvious which I am missing ?
Official Xero Reply
Xero will begin to deprecate Entrust Certificates for Xero Partner Apps in 2017


Sidney Maestre (Community Manager)