Forums

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

Is it possible to open default browser with Confluence logged in from external app?

Michał Wiland December 7, 2018

I have a C# app. What I'm trying to do is to open the default browser (for example Mozilla) with Confluence logged in.

I tried to create a simple html file (and run it from C#) with a function that creates a request and passes the Authorization header:

 

function myFunction() { 
var parameters = location.search.substring(1).split("&");
var lAuthHeader = parameters[0];

$.ajax({

url: "https://myconfluenceurl?",
type: "GET",
beforeSend: function(xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + lAuthHeader);
},
success: function() {
window.location.href = 'https://myconfluenceurl?';
}

});
}

But I'm getting a 403 in the console. Is there any way to do it?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2018

Get your application to use SSO, or create a login token for the Atlassian application it needs to get into.

Michał Wiland December 7, 2018

Can you provide an example? I need to pass it to my default browser (Mozilla). How can I do it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events