# Allow access to community only to users logged into our app

**URL:** https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253
**Category:** Support
**Created:** [April 25, 2022, 5:24pm UTC](https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253 "2022-04-25T17:24:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bejoy\_Narayana](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bejoy_narayana/32/252113_2.png) [@Bejoy\_Narayana](https://meta.discourse.org/u/Bejoy_Narayana)
#### Post date: [April 25, 2022, 5:24pm UTC](https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253/1 "2022-04-25T17:24:54Z")

</div>

Hello- We want to allow access to community.bob.ai only to users who are already logged into our app. We are now getting a popup from Auth0 to sign in. We don’t want that and we want the user to sign in from Bob.ai. Does anyone know how to do this?

Thanks,

Bejoy

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 25, 2022, 6:04pm UTC](https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253/2 "2022-04-25T18:04:10Z")

</div>

You should get whoever configured your system to use Auth0 to instead use `bob.ai`? You can tell who that was by looking at the admin logs.

But another question might be what do you expect to happen if someone tries to log into Discourse who is not already logged in to your app?

I can’t tell if you have misconfigured your SSO or don’t know how it’s supposed to work.

---

<div class="post-metadata">

### Author: ![Bejoy\_Narayana](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bejoy_narayana/32/252113_2.png) [@Bejoy\_Narayana](https://meta.discourse.org/u/Bejoy_Narayana)
#### Post date: [April 25, 2022, 6:22pm UTC](https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253/3 "2022-04-25T18:22:46Z")

</div>

Thanks, Jay. We don’t want to provide an option to login to Discourse directly. Our idea here is to take such users to the Bob.ai with a message that they have to login to our app to access the community. You seem to be suggesting the same. Users who are logged into our app should be able to access the community as though the community is just part of our app.

To achieve this is there a configuration option in Discourse to tell the users who are not logged into our app to go to Bob.ai instead of Auth0? Is that all that we need to do?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 26, 2022, 1:48pm UTC](https://meta.discourse.org/t/allow-access-to-community-only-to-users-logged-into-our-app/225253/4 "2022-04-26T13:48:34Z")

</div>

Does `bob.ai` use Auth0? Typically, when you configure one of those external authentication services Discourse sends users to that service when they try to log in.
