https://bitbucket.org/atlassian/atlassian-connect-express/src/75562f3b71d4f236d8af17c8e4250dc5b8860636/RELEASENOTES.md?at=master&fileviewer=file-view-defaultAtlassian Connect for Express.js Release Notes
2.0.0
- Adds support for Bitbucket add-ons.
- Adds support for user impersonation in JIRA and Confluence using OAuth 2.0 (AC-1080). To leverage this feature, use the
httpClientas follows:var httpClient = addon.httpClient(req); httpClient.asUser('barney').get('/rest/api/latest/myself', function (err, res, body) { ... });
- Setting the JWT
subclaim from the userKey is no longer supported. Please use theasUser()method instead.- The attribute
appKeyin the render context is nowaddonKey.