# 2 applications 1 login

**URL:** <https://community.auth0.com/t/2-applications-1-login/62251>\
**Category:** Get Help\
**Tags:** auth0, login\
**Created:** [May 5, 2021, 11:38am UTC](https://community.auth0.com/t/2-applications-1-login/62251 "2021-05-05T11:38:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TradeCoach](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tradecoach/32/29229_2.png) [@TradeCoach](https://community.auth0.com/u/TradeCoach)\
**Post date:** [May 5, 2021, 11:38am UTC](https://community.auth0.com/t/2-applications-1-login/62251/1 "2021-05-05T11:38:15Z")

</div>

Hi,

I am relatively new to web development and using auth0 hence why I cannot get this to work.

Recently I have secured both our webapplication running an instance of R-Shiny and a wordpress website with auth0. I managed to share the database connection but I would like to see that if you are logged in at one application, you are also logged in at the other application. Given that they share the same client ID/secret and they have access to the same database, how can I make sure that if you are logged in at one application you are also logged in at the other application?

Thank you in advance,

All the best,  
Laurence

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [May 5, 2021, 1:38pm UTC](https://community.auth0.com/t/2-applications-1-login/62251/2 "2021-05-05T13:38:23Z")

</div>

Hi @TradeCoach

As long as you have a single Auth0 tenant, both applications defined in that tenant, and both applications using the same DB connection, you should get the SSO behavior you are looking for.

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 6, 2021, 9:27am UTC](https://community.auth0.com/t/2-applications-1-login/62251/3 "2021-05-06T09:27:48Z")

</div>

Thanks John for helping in this one!

---

<div class="post-metadata">

**Author:** ![TradeCoach](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tradecoach/32/29229_2.png) [@TradeCoach](https://community.auth0.com/u/TradeCoach)\
**Post date:** [May 6, 2021, 3:46pm UTC](https://community.auth0.com/t/2-applications-1-login/62251/4 "2021-05-06T15:46:45Z")

</div>

Hi John,

Thank you for the quick response!

I have turned off one of the two databases:  
![db\_auth0|690x170]

Both applications still work (I can login at each application seperately) and when I manually inspect the url when trying to log in on either, the client ID is the same for both applications.

The SSO behavior I am looking for does not occur, I have to login at each application separately.

Perhaps I misunderstand the concept of “single Auth0 tenant”, please correct me if I am wrong, does a single Auth0 tenant imply that they are both registered under 1 application? As in, that they both use the same client ID and secret? I entered the same client id and secret both in the wordpress configuration and the auth0 configuration file for the R application. The wordpress website and the R application are located at two different servers, I am unsure if that is relevant to solve this issue.

I would love to hear how I can go about solving this issue, I am simply unsure where to look and what to google to solve the issues I encounter.

All the best,  
Laurence

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [May 7, 2021, 1:12pm UTC](https://community.auth0.com/t/2-applications-1-login/62251/5 "2021-05-07T13:12:02Z")

</div>

Hi Laurence,

Each application should have its own client ID and secret.

SSO is driven by a cookie in the Auth0 tenant domain - are you sure your cookie settings are appropriate and both applications see the session cookie?

I’d suggest logging in using the raw URLs from Auth0’s authentication API (the /authorize endpoint) - you can figure out the parameters by watching the network while logging in to either app, and seeing if SSO works there, trying different browsers etc.

John

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 22, 2021, 1:12pm UTC](https://community.auth0.com/t/2-applications-1-login/62251/6 "2021-05-22T13:12:21Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
