ASP.NET (OWIN) Introduction

System Requirements

This tutorial and seed project have been tested with the following:

  • Microsoft Visual Studio 2017
  • Auth0-ASPNET-Owin NuGet Package v2.0.0

This quickstart guide will walk you through the various tasks related to integrating Auth0 into your ASP.NET MVC 5 application.

Sample Projects

If you would like to follow along with this quickstart, you can download a blank starter seed project. This is just a regular ASP.NET MVC application with a home page and a web.config file where you can configure the various Auth0-related settings for your application.

Each of the steps in this guide contains a sample project download that shows the completion of the step. These projects can also be downloaded from the ASP.NET (OWIN) MVC samples repository where you can find the final result for each step in the relevant folder.

Get Your Application Keys

When you signed up for Auth0, you were invited to create a new client.

There are some details about this client that your application needs to know about to properly communicate with Auth0, including your Client ID and Domain. You can retrieve these values from the settings area for your client in the Auth0 dashboard.

Please note that if you download the samples available for this tutorial, these keys will be pre-populated for you. If you have created more than one client in your account, the sample will come with the values for your Default App.

App Dashboard

Configure Callback URLs

The Callback URL of your application is the URL where Auth0 will redirect to after the user has authenticated in order for the Auth0 OAuth2 middleware to complete the authentication process.

You will need to add this URL to the list of Allowed URLs for your application. The Callback URL for the seed project is http://localhost:56572/signin-auth0, so be sure to add this to the Allowed Callback URLs section of your application. Also add http://localhost:56572/ to the Allowed Logout URLs.

If you deploy your application to a different URL you will also need to ensure to add that URL to the Allowed Callback URLs and Allowed Logout URLs.

That's all you need to start working with Auth0!

Please continue with the Login tutorial to know how to implement basic login.

Next Tutorial
2. Login
Use Auth0 for FREECreate free Account