Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,881
Community Members
 
Community Events
176
Community Groups

Redirect to Confluence-Space from my C# application and avoid login page.

I have a desktop application, up on click on a button I need to open default browser loaded with one of my Confluence Space(This confluence space is restricted for anonymous user).

I have created a user in Atlassian with access to this particular confluence space. How can I authenticate through my desktop application (in background) so that when my application user clicks on the button he should able to see the Confluence space in his browser.

 

 

2 answers

2 votes
Neil Atlassian Team Feb 06, 2020

As far as I know, there isn't a way for you to accomplish exactly what you're trying to do. When a user logs in, session information is established using browser-based storage mechanisms (secure cookies, local storage, session storage, etc.). 

Out of the box, the Confluence Cloud product does support public/open access, allowing anonymous users to browse/read content without the need to login; however, the caveat is that if you do have spaces that you intend to keep private, that you'll need to configure space and content permissions, and do it well.

Per @tharaka92message above, I responded on that Developer Community thread stating what I said above, with perhaps a little more detail.

0 votes
Shannon S Atlassian Team Feb 04, 2020

Hello Bibin,

Thank you for contacting us about this. It sounds like you'll need to impersonate the user via the application, so these pages should be helpful to you:

If you're writing a Atlassian Connect app, you can follow the User Impersonation for Connect Apps for details.

I hope that helps, but if you have any further issues or development-related queries, you can raise a new thread from our Developer Community, available on our Developer Resources page.

Take care,

Shannon

Hi Shannon,

Thanks for your response! I found myself in the same situation as Bibin and I'm glad he asked this question. I went through the links provided in your answer but it seems they are valid only for making API requests. But what we need is to redirect users to the space page(once the button is clicked) without prompting for username and password. Can this also be done using above mentioned links?

Thanks!

Shannon S Atlassian Team Feb 05, 2020

Hello @tharaka92,

Thank you for following-up on this thread.

The links I have provided are not just for use with API. In the 2nd article especially, it states on the top of the article that you can use the method in the following situations:

In order for your button to work, you will need to program it in a way that uses OAuth 2.0 for user impersonation. 

I would love to be able to tell you specifically how to program user impersonation into your button, but it requires someone with more development knowledge. This forum isn't the best place for that, as I let Bibin know earlier. You can find help for that via our Developer Community on the Developer Resources page.

Regards,

Shannon

Like # people like this

Understood. 

Thanks for the quick reply.

Like # people like this

I have already placed a developer support , but he is suggest to use application links .

See my post here. https://community.developer.atlassian.com/t/redirect-to-confluence-space-from-my-c-application-and-avoid-login-page/35197/3

 

@tharaka92please let me know if you got a viable solution.

Like # people like this

@Bibin T Philip Hey, Yes I saw your question yesterday. But I posted a new one anyway.

Here it is - https://community.developer.atlassian.com/t/redirect-users-to-a-confluence-space-overview-page-without-going-through-the-confluence-login-flow/35431

I will let you know if we pull this off.

@Bibin T Philip @tharaka92 I know it's been very long, but can you please suggest what approach you took to implement the required functionality of avoiding login page.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events