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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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