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?
Get your application to use SSO, or create a login token for the Atlassian application it needs to get into.
Can you provide an example? I need to pass it to my default browser (Mozilla). How can I do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.