Login from my webapp
Asked by Gaetano La Fragola:

Hi,

I would log into confluence from my web application, so my users can open documentation directly without insert uid and pwd in the confluence login page.

How do I achieve that? Is there an howto/tutorial?

Thk

Gaetano


Answers:
author: Andrea Chiericati
body: Hi [@Gaetano La Fragola](/t5/user/viewprofilepage/user-id/3003382) , did you solve your issue?  
I have the same need

comments: author: Gaetano La Fragola
body: Hi,

I solved making public all knowlodge-base pages .

All in all , in my case, the app is publicly available.

I have used also the Jira Widget integrated directly into my app so users are able to create ticket and read knowledge-base inside my application workspace.

*"By embedding a lightweight request form, your customers can send requests directly from any website you control.*   
*If you enable and configure your widget, we'll generate code that you can copy to embed the widget on your website."*

*Bye*


author: Andrea Chiericati
body: I understand, unfortunately I need to keep the contents private and with this deprecated feature I don't see any other options at the moment:

<https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/>

For your need consider that solution in case og Jira Service Desk:

<https://support.atlassian.com/jira-service-management-cloud/docs/set-up-a-knowledge-base-so-customers-can-serve-themselves/>

Only your Jira SD ***Customer***(unlicensed) can access to your knwoledge

Kr


author: Shannon S
body: Hello Gaetano,

Thank you for raising this question with us! Happy to help.

Is this a web application you're developing? You would need to still pass the login credentials to the page somehow, either by using API, or use [SAML Single Sign On with Atlassian Access](https://confluence.atlassian.com/cloud/saml-single-sign-on-943953302.html) if you're on Cloud. This way, your users would just need to supply their email address and it'll automatically send them to your identity provider to obtain the login details.

Let me know if you have any questions about that.

Regards,

Shannon

comments: author: Gaetano La Fragola
body: Hi,

yes we are developing a web application and we wanna give to users the access to the kb and the docs stored in confluence.

I don't have a clear idea of what is the best way for us.

I would like my user are able to open a KB page of confluence using a link in a web page inside my web app. Obviously without the need to write uid and pwd.

My favorites in order are :

1) to pass uid and pwd from my app to confluence

2) Using API to get confluence contents and show all inside my web app.

3) SSO

Can you give me any suggestion?

Thanks a lot

Gaetano


author: Christian Reichert (resolution)
body: Hi [@Gaetano La Fragola](/t5/user/viewprofilepage/user-id/3003382) ,

do you need that solution for Confluence Cloud or for Confluence Server/DC - makes a huge difference in the answer.

Cheers,  
Christian


author: Gaetano La Fragola
body: I'm sorry.

I speak about Confluence Cloud.

Many Thanks


author: Christian Reichert (resolution)
body: Hi [@Gaetano La Fragola](/t5/user/viewprofilepage/user-id/3003382)

then probably your \*only\* options is:

\> Using API to get confluence contents and show all inside my web app.

<br />

SSO/Atlassian Access will probably not work for you, since it only applies to Atlassian Accounts. So everyone of your Users would have to be turned into an Atlassian Account.

Passing UID/PWD from your App to Confluence Cloud, does not work either.

Cheers,  
Christian


author: Shannon S
body: Hello Gaetano,

Thank you for clarifying that. I only see a Cloud account associated with your email, so my response from earlier would be the same. If it's for Cloud, you can either use API to do this, or you can add [Single Sign-On to your account](https://confluence.atlassian.com/cloud/saml-single-sign-on-943953302.html?_ga=2.133163406.1400638574.1573472123-1642555208.1571221417) by subscribing to [Atlassian Access](https://www.atlassian.com/software/access?_ga=2.95431836.1400638574.1573472123-1642555208.1571221417) which is a paid service.

If this is for another version of Confluence, such as Server or Data Center, please let us know.

Regards,

Shannon


author: Gaetano La Fragola
body: Hello Shannon, thank you for "pronto" answer.

Please let me know where can I find tutorial/docs/howto for using API

We would like to start implementation as soon as possible.

Best Regards

Gaetano


author: Shannon S
body: Hello Gaetano,

The documentation for Confluence Cloud REST API can be found on our Developer site below:

* [Confluence Cloud REST API Documentation](https://developer.atlassian.com/cloud/confluence/rest/)

If you're not familiar with REST-API usage already, have a look at this [Beginners Tutorial for REST API](https://mlsdev.com/blog/81-a-beginner-s-tutorial-for-understanding-restful-api).

And for more information on developing for Confluence Cloud, see [Getting Started](https://developer.atlassian.com/cloud/confluence/getting-started/) in the Confluence Cloud Development documentation.

Regards,

Shannon