Skip to content

Commit

Permalink
Update Xero integration from OAuth1 to OAuth2 (#64)
Browse files Browse the repository at this point in the history
* Update Xero to be OAuth 2

* Bugfix commas 🤦‍♂️
  • Loading branch information
nabilfreeman authored Jun 30, 2020
1 parent 6610710 commit 602fce5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions integrations/xero.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "Xero",
"auth": {
"accessTokenURL": "https://api.xero.com/oauth/AccessToken",
"authorizationParams": {},
"authType": "OAUTH1",
"requestTokenURL": "https://api.xero.com/oauth/RequestToken",
"signatureMethod": "HMAC-SHA1",
"tokenParams": {},
"userAuthorizationURL": "https://api.xero.com/oauth/Authorize"
"authType": "OAUTH2",
"authorizationParams": { "response_type": "code" },
"authorizationURL": "https://#.xero.com/identity/connect/authorize",
"tokenParams": { "grant_type": "authorization_code" },
"tokenURL": "https://identity.xero.com/connect/token"
},
"request": {
"baseURL": "https://api.xero.com/api.xro/2.0/",
"headers": { "Accept": "application/json", "Authorization": "OAuth ${auth.oauth1}", "User-Agent": "Pizzly" }
"baseURL": "https://api.xero.com/",
"headers": {
"User-Agent": "Pizzly",
"Authorization": "Bearer ${auth.accessToken}",
"Accept": "application/json"
}
}
}

0 comments on commit 602fce5

Please # to comment.