---
title: "Introducing Db Connections"
description: "Since we released the beta, one of the things our customers have been telling us, is they want us to support a \"username/password\" authentication."
authors:
  - name: "Jose Romaniello"
    url: "https://auth0.com/blog/authors/jose-romaniello/"
date: "Jun 4, 2013"
category: "Developers,Product,Database Connections"
tags: ["announcements", "enterprise"]
url: "https://auth0.com/blog/introducing-db-connections/"
---

# Introducing Db Connections



Since we released the beta, one of the things our customers have been telling us, is they want us to support a "username/password" authentication. Auth0 is being used today by two different audiences:

<!-- more -->

-   **Cloud apps**: they want to have a single uniform authentication and login analytics, across all the options: social providers, enterprise providers (like Google Apps or Active Directory, SAML Providers) and now, username and password.

-   **Organizations**: our enterprise customers, typically have already a dozen (sometimes more) of "identity silos" created for different apps, at different times and they want to consolidate those databases.

### Enter Database Connections

Database Connections works exactly like "Custom Connections" but with some advantages:

-   you don't have to deploy another application
-   seamless widget integration
-   a whole set of templates for your needs
-   develop, try and debug in the cloud without needing to install any tool

### Example: ASP.NET Membership Provider

Suppose we have already started to build a product using the standard [ASP.NET Membership Provider](http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx). ASP.NET Membership autogenerates a set of tables and relationships in Sql Server as shown here:

![](https://images.ctfassets.net/23aumh6u8s0i/26Ne1r7Cu5BAvPccDJj1bk/b47446405fa3aaee31d4619795505498/A4N95VJO07-1200x1200)

We would start by creating a new Database Connection in Auth0. Then we can pick the ASP.NET Membership Provider from the list:

![](https://images.ctfassets.net/23aumh6u8s0i/2hm42zu7yMmexxcKGS8rZ/26347d0caae8aa0ad5fab65062be9f3c/Screen_20Shot_202013-06-03_20at_205)

We can tweak the script to fit our needs:

![](https://images.ctfassets.net/23aumh6u8s0i/5ibHFyRdxAUdaYwYf9xxAj/3d39d1282c5da51ce32103af09a305e3/Screen_20Shot_202013-06-03_20at_205)

Connection strings and passwords should be stored as configuration settings in the bottom pane:

![](https://images.ctfassets.net/23aumh6u8s0i/4cDApZFbPaVcXDVVhruc1A/14b50a7d00f80da3fad919ecd2477402/Screen_20Shot_202013-06-03_20at_205)

We can open at anytime the Try window to run our script:

![](https://images.ctfassets.net/23aumh6u8s0i/7uMWjjxRI0MUsmOaVw5nfr/272daf2d388ff2cf1abe3af577d22413/Screen_20Shot_202013-06-03_20at_205)

In order to debug the script you can take advantage of `console.log`:

![](https://images.ctfassets.net/23aumh6u8s0i/5hj6fNoGfTuznEe5OPUf0v/01301315d8ae03ffa27f12e145bd6a7a/Screen_20Shot_202013-06-03_20at_205)

When the login is succesful you will see a green border and the result profile:

![ss-2013-06-04T10-51-04.png](https://images.ctfassets.net/23aumh6u8s0i/1gvjlQeEqNcRCKajADfURH/d0a418c8357fda43283890bfb51c04b4/ss-2013-06-04T10-51-04)

After we have finished the script, the login widget in our site will look like this:

![](https://images.ctfassets.net/23aumh6u8s0i/10x5ujAdevu4VbUhhZLIbF/cf937dbcfad1721fc251fa517459ce83/Screen_20Shot_202013-06-03_20at_205)

### Get started today

Read the [tutorial](https://docs.auth0.com/mysql-connection-tutorial) in our documentation page to get started.

<em>This feature is available in both the enterprise appliance and cloud version. [Try Auth0 yourself!](https://auth0.com)</em>
