Docs

Custom Database Script Templates: Login

Auth0 provides the following custom database login script templates that you can use when implementing user login functionality.

While Auth0 has populated default templates in the Dashboard script editor, you can use the following links to recover the original code and notes once you've made and saved edits.

Notes

When working on your login script, keep in mind that:

  • The script will be executed each time a user attempts to login
  • The two parameters, email and password, are used to validate the authenticity of the user
  • The login script is mandatory

Sample Scripts

Auth0 provides sample scripts for use with the following languages/technologies:

JavaScript

ASP.NET Membership Provider (MVC3 - Universal Providers)

ASP.NET Membership Provider (MVC4 - Simple Membership)

MongoDB

MySQL

Oracle

PostgreSQL

SQL Server

Windows Azure SQL Database

Request with Basic Auth

Stormpath