Skip to content

Commit 86f7c2c

Browse files
committed
Fix Path for PrivateKey certificate
New RSASignerFactory does not include the leading “/“ so you can specify any path in config.json
1 parent 8cad7ca commit 86f7c2c

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ In a text editor, create a file called config.json (examples are below) Refer t
6969
"UserAgent": "YourAppName",
7070
"ConsumerKey" : "CW1XXXXXXXXXXXXXXXXXXXXXXXXYG",
7171
"ConsumerSecret" : "SRJXXXXXXXXXXXXXXXXXXXXXXXZEA6",
72-
"PrivateKeyCert" : "certs/public_privatekey.pfx",
72+
"PrivateKeyCert" : "/certs/public_privatekey.pfx",
7373
"PrivateKeyPassword" : "1234"
7474
}
7575
```
@@ -82,7 +82,7 @@ In a text editor, create a file called config.json (examples are below) Refer t
8282
"ConsumerSecret" : "7FMXXXXXXXXXXXXXXXXXXXXXXXXXCSA",
8383
"CallbackBaseUrl" : "http://localhost:8080/myapp",
8484
"CallbackPath" : "/CallbackServlet",
85-
"PrivateKeyCert" : "certs/public_privatekey.pfx",
85+
"PrivateKeyCert" : "/certs/public_privatekey.pfx",
8686
"PrivateKeyPassword" : "1234"
8787
}
8888
```
@@ -126,7 +126,7 @@ xero.AppType=PRIVATE
126126
xero.UserAgent=Your App Name
127127
xero.ConsumerKey=FA6UXXXXXXXXXXXXXXXXXXXXXXRC7
128128
xero.ConsumerSecret=7FMXXXXXXXXXXXXXXXXXXXXXXXXXCSA
129-
xero.PrivateKeyCert=certs/public_privatekey.pfx
129+
xero.PrivateKeyCert=/certs/public_privatekey.pfx
130130
xero.PrivateKeyPassword=
131131
```
132132

example/src/main/resources/config-partner.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"AppType" : "PARTNER",
33
"UserAgent" : "YouAppName",
44
"Accept" : "application/xml",
5-
"ConsumerKey" : "——YOUR-CONSUMER-KEY—",
6-
"ConsumerSecret" : "——YOUR-CONSUMER-SECRET—",
5+
"ConsumerKey" : "YOUR_CONSUMER_KEY",
6+
"ConsumerSecret" : "YOUR_CONSUMER_SECRET",
77
"ApiBaseUrl" : "https://api.xero.com",
88
"ApiEndpointPath" : "/api.xro/2.0/",
99
"RequestTokenPath": "/oauth/RequestToken",
1010
"AuthenticateUrl" : "/oauth/Authorize",
1111
"AccessTokenPath" : "/oauth/AccessToken",
1212
"CallbackBaseUrl" : "https://localhost",
1313
"CallbackPath" : "/CallbackServlet",
14-
"PrivateKeyCert" : "certs/public_privatekey.pfx",
14+
"PrivateKeyCert" : "/certs/public_privatekey.pfx",
1515
"PrivateKeyPassword" : "——YOUR-PRIVATE-KEY-PASSWORD—"
1616
}

example/src/main/resources/config-private.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"AppType" : "PRIVATE",
33
"UserAgent" : "YouAppName",
44
"Accept" : "application/xml",
5-
"ConsumerKey" : "——YOUR-CONSUMER-KEY—",
6-
"ConsumerSecret" : "——YOUR-CONSUMER-SECRET—",
5+
"ConsumerKey" : "YOUR_CONSUMER_KEY",
6+
"ConsumerSecret" : "YOUR_CONSUMER_SECRET",
77
"ApiBaseUrl" : "https://api.xero.com",
88
"ApiEndpointPath" : "/api.xro/2.0/",
9-
"PrivateKeyCert" : "certs/public_privatekey.pfx",
9+
"PrivateKeyCert" : "/certs/public_privatekey.pfx",
1010
"PrivateKeyPassword" : "——YOUR-PRIVATE-KEY-PASSWORD—"
1111
}

example/src/main/resources/config-public.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"AppType" : "PUBLIC",
33
"UserAgent" : "YouAppName",
44
"Accept" : "application/xml",
5-
"ConsumerKey" : "——YOUR-CONSUMER-KEY—",
6-
"ConsumerSecret" : "——YOUR-CONSUMER-SECRET—",
5+
"ConsumerKey" : "YOUR_CONSUMER_KEY",
6+
"ConsumerSecret" : "YOUR_CONSUMER_SECRET",
77
"ApiBaseUrl" : "https://api.xero.com",
88
"ApiEndpointPath" : "/api.xro/2.0/",
99
"RequestTokenPath": "/oauth/RequestToken",

example/src/main/resources/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"AppType" : "PUBLIC",
33
"UserAgent" : "YouAppName",
44
"Accept" : "application/xml",
5-
"ConsumerKey" : "——YOUR-CONSUMER-KEY—",
6-
"ConsumerSecret" : "——YOUR-CONSUMER-SECRET—",
5+
"ConsumerKey" : "YOUR_CONSUMER_KEY",
6+
"ConsumerSecret" : "YOUR_CONSUMER_SECRET",
77
"ApiBaseUrl" : "https://api.xero.com",
88
"ApiEndpointPath" : "/api.xro/2.0/",
99
"FilesEndpointPath" : "/files.xro/1.0/",

0 commit comments

Comments
 (0)