Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use existing app link with Oauth (impersonation) inside Confluence SIL script with REST API call to

BostjanR August 26, 2020

We have Power Scripts for Confluence (SIL scripts) installed on our Confluence server. Confluence is linked to Jira with application link with Oauth impersonation.

Is is possible to use this link as authentication instead of basic authentication as explained in your example:

https://confluence.cprime.io/display/SIL/httpGet

//Create requestHttpRequest request;HttpHeader authHeader = httpBasicAuthHeader("admin", "admin");request.headers += authHeader; //Post data and get responseserverInfo si = httpGet("http://localhost:8080/rest/api/2/serverInfo?doHealthCheck=false", request);return si.baseUrl;

 

1 answer

1 accepted

0 votes
Answer accepted
Fabian Lim
Community Champion
January 12, 2022

Hi Bostjan,

If you are still experiencing issues, I recommend you contact their support team for a faster response.  They are great at resolving scripting issues.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events