Hello,
I'm building an add-on with Atlassian Connect Express. When JIRA calls my addon, I would like it to make a call back as the currently logged in user. For example, call /rest/api/2/myself and get Jimmy's profile.
How can I achieve it?
When I make the call using the snippet below, it returns information about the addon.
app.get('/myproject', addon.authenticate(), function (req, res) { var httpClient = addon.httpClient(req); httpClient.get('/rest/api/2/myself', function() { /* */ }); });
Community moderators have prevented the ability to post new answers.
This is not currently possible; there's an issue open, AC-1080, which you can vote, watch, and comment on. To act on the behalf of a user, it must happen in the user's browser session.
Thank you. I guess I could also use the request library (or another HTTP client) directly with the JWT token coming on the server request, correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any JWT signed request would have the same behaviour, acting as the add-on user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.