# Validate users using my own databasa

**URL:** <https://community.auth0.com/t/validate-users-using-my-own-databasa/121843>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [November 28, 2023, 8:01pm UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843 "2023-11-28T20:01:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerarca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerarca/32/52802_2.png) [@Gerarca](https://community.auth0.com/u/Gerarca)\
**Post date:** [November 28, 2023, 8:01pm UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843/1 "2023-11-28T20:01:19Z")

</div>

Hello!!! following this steps [Vue.js v2/JavaScript + Express.js/JavaScript](https://developer.auth0.com/resources/code-samples/full-stack/hello-world/basic-access-control/spa/vue-v2-javascript/express-javascript)

It’s possible check and validate users using my own data base???

I have been trying for several days, trying to validate users who can log in using the login of auth0, in my case I have my own database on postgres, and I would like allow users to log in but only those who are registered in my database, I was thinking it’s possible???

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 29, 2023, 10:26am UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843/2 "2023-11-29T10:26:42Z")

</div>

Hi @Gerarca !

You can integrate your Postgress database with auth0 by creating a custom database connection in the Auth0 tenant.

The process is depicted here - [Create Custom Database Connections](https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection)

> [@Gerarca](#):
>
> I would like allow users to log in but only those who are registered in my database

You can restrict a connection available for your specific application registered in auth0 by going to your Auth0 tenant → Applications → your app → Connections → switch on the button representing the custom postgress connection that you have created and switch off any other connections.

I also found a blog on integrating postgress with auth0, maybe helpful! - [Connecting PostgreSQL to Auth0 Custom Database](https://auth0.com/blog/configuring-postgresql-as-auth0-custom-database/)

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [November 29, 2023, 10:35am UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843/3 "2023-11-29T10:35:39Z")

</div>

One thing to take into consideration, before any significant effort on that, is the [pricing plan and the availability of this feature](https://auth0.com/pricing):

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/0/509e0dc2a0c958a86250feebd2acf4fc157c15f6.png)

In all cases, if you registered for a new free trial, bu default you have a full access for some time to test feature out.

Please let me know if you have any questions!

---

<div class="post-metadata">

**Author:** ![Gerarca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerarca/32/52802_2.png) [@Gerarca](https://community.auth0.com/u/Gerarca)\
**Post date:** [November 29, 2023, 12:21pm UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843/4 "2023-11-29T12:21:54Z")

</div>

thanks @marcelina.barycka I got it!

---

<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:** [December 13, 2023, 12:22pm UTC](https://community.auth0.com/t/validate-users-using-my-own-databasa/121843/5 "2023-12-13T12:22:26Z")

</div>

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