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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Connect apps: Use JWT. You can also use OAuth 2.0 user impersonation.
Other apps: Use OAuth 2.0 (3LO) for authentication and authorization.
Not using an app: Use OAuth 1.0a. See OAuth for REST APIs (Jira platform), OAuth for REST APIs (Jira Service Desk), or OAuth for REST APIs (Confluence).
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.