# Does Auth0 try every database connection?

**URL:** <https://community.auth0.com/t/does-auth0-try-every-database-connection/7421>\
**Category:** Get Help\
**Tags:** tier1, connections\
**Created:** [July 7, 2017, 6:22pm UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421 "2017-07-07T18:22:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick.brunmayr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrick.brunmayr/32/7785_2.png) [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Post date:** [July 7, 2017, 6:22pm UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421/1 "2017-07-07T18:22:54Z")

</div>

Does Auth0 try every connection for my client when there are multiple enabled ? In case i have enabled multiple custom database connections will it try every connection until one user is found or will it only try the first ?

---

<div class="post-metadata">

**Author:** ![swapna.dixit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@swapna.dixit](https://community.auth0.com/u/swapna.dixit)\
**Post date:** [July 7, 2017, 8:07pm UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421/2 "2017-07-07T20:07:16Z")

</div>

Authentication can be initiated for only one connection. Though database connections can work side-by-side, authentication is done only against the specified connection. For example, the social connections like Facebook, Twitter, Google work side-by-side in Auth0 when they are enabled, but the authentication of the user is done only against the connection specified in that case. Each DB connection can only be used in similar way but application needs to specify which DB connection to use for a particular situation.

---

<div class="post-metadata">

**Author:** ![rmm5t](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rmm5t/32/7027_2.png) [@rmm5t](https://community.auth0.com/u/rmm5t)\
**Post date:** [July 26, 2017, 5:07am UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421/3 "2017-07-26T05:07:24Z")

</div>

Darn. This is a tad frustrating and seems like a surprise as to why a client is allowed to be configured for multiple database connections otherwise. It really would be nice if a login rolled through the list of enabled database connections looking for a match.

---

<div class="post-metadata">

**Author:** ![darryn.campbell](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@darryn.campbell](https://community.auth0.com/u/darryn.campbell)\
**Post date:** [August 24, 2017, 2:13am UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421/4 "2017-08-24T02:13:52Z")

</div>

I agree, this is very frustrating, and disappointing. To have a client able to associate multiple database connections but not be able to make use of all of them for authentication is awfully misleading. I hope there is the potential to change this behavior in the future.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/does-auth0-try-every-database-connection/7421/5 "2018-03-02T05:55:13Z")

</div>


