Redirect to Confluence from my app avoiding login page via API REST
Asked by Rafael L?pez Osuna:

Hi, I want to redirect the users from my webapp to our Confluence, but I don't want that my user has to do the login, I want to authenticate with one user that I've created and show to the user a page from confluence without needed to login manually.

It's possible?

Thanks.


Answers:
author: David Zuckerman
body: Hi Rafael:

The method used:

https://url/login.action?os_username=user\&os_password=password\&os_destination=pages/viewpage.action?pageId=pageId

Does not seem to work any more.

I was wondering if you came up with another solution.  
If so can you please share it. Thank you.

comments: author: Rafael L?pez Osuna
body: Hi David, now we are using this method and is working for us :S


author: Bibin T Philip
body: [@Rafael L?pez Osuna](/t5/user/viewprofilepage/user-id/2791404) , When I am trying the same https//url...... I am getting below message in the page.

REQUEST DENIED. Refer to <https://url.....username+and+os_password+embedded+in+URL+no+longer+available> for details.

I have the same situation, that i need to redirect to one Confluence -Space after internal authentication.

[@Stephen Sifers](/t5/user/viewprofilepage/user-id/2145523) can you suggest anything.


author: Stephen Sifers
body: Hello Rafael and welcome to the Community!

From my understanding of your question, you're wanting users to authenticate to Confluence without needing to enter a username and password again. If this is correct, then you're going to want to use SSO or SAML authentication to complete this type of authentication. There are multiple solutions available which over SAML authentication for Confluence and allowing you to use SSO (single sign-on). More about this may be found at [Server: SSO and SAML support](https://confluence.atlassian.com/confeval/other-atlassian-evaluator-resources/server-sso-and-saml-support) and [SAML for Confluence](https://marketplace.atlassian.com/search?application=confluence&category=&cost=&hosting=&marketingLabel=&q=SAML&_ga=2.106242240.2100130692.1551879542-1581346095.1546457917).

In regards to your comment about using a single user to have all users authenticated through; A user within Confluence (or any Atlassian tool) is defined as "Only one individual, a named person, is permitted per product login. Multiple people cannot share a product login. Our licensing model is not based on concurrent users."

Source documentation: [Purchasing \& Licensing FAQ](https://www.atlassian.com/licensing/purchase-licensing#licensing-1).

Having multiple users access an Atlassian tool under a single account would go against the [Atlassian Software License Agreement](https://www.atlassian.com/legal/software-license-agreement). It is suggested that each user you have accessing Confluence either access via [anonymous access](https://confluence.atlassian.com/doc/setting-up-public-access-156.html) or as a licensed user per individual.

I hope this helps give some insight into what is needed for SSO and SAML along with clarification on how your users are allowed to access the products.

Regards,  
Stephen Sifers

comments: author: Rafael L?pez Osuna
body: Hi Stephen,

Thank you very much for your answer. Finally, I resolved this easily putting the username and the password as a parameter in a HTTP request. With that, anyone who goes to our confluence, which we use as a user's guide, doesn't need to login and access directly to the site. Something like this;

https://url/login.action?os_username=user\&os_password=password\&os_destination=pages/viewpage.action?pageId=pageId

I hope this will be useful por someone else.

And again, thank you for your answer.


Tags: atl-adm

confluence-server

server