I'm developing a Confluence & JIRA plugin, with REST resources on both sides. I use Applinks to authenticate requests. There is a REST resource in Confluence that should only be accessed from my JIRA plugin.
ApplicationLink appLink = filter(applinks.getApplicationLinks()); ApplicationLinkRequestFactory requestFactory = appLink.createAuthenticatedRequestFactory(); ApplicationLinkRequest request = requestFactory.createRequest(Request.MethodType.PUT, url); request.execute();
This code executes the request as the logged-in JIRA user (e.g. if the user is 'user1' in JIRA, then it will authenticate the request as 'user1' in Confluence). It's not desirable, because I don't want 'user1' to be able to perform this call from the browser.
Simliarly:
Isn't there any Applinks request which can perform a REST call as an administrator?
Community moderators have prevented the ability to post new answers.
I guess jiraAuthenticationContext.setLoggedInUser(user); is what you need.
Excellent! And sorry that I'm new to JIRA, but how to I get the list of administrators? Just give me the general direction and I'll search. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you can list JIRA admin group.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I am trying to update applinks after refresh from production to QA and or development. Just wondering what is the best way to do it. I have seen some database queries in documentation. But it would be nice if there is a way to automate the update process.
Any help is appreciated...
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.