<commit_before># Using Auth0 with ASP.NET (OWIN)

This tutorial explains how to integrate Auth0 with an ASP.NET application (any kind: WebForms, MVC and even Web API) that uses the ASP.NET 4.5 Owin infrastructure.

## Tutorial

### 1. Install Auth0-ASPNET-45 NuGet package

Use the NuGet Package Manager (Tools -> Library Package Manager -> Package Manager Console) to install the **Auth0-ASPNET-45** package, running the command:

```
Install-Package Auth0-ASPNET-45
```

### 2. Setting up the callback URL in Auth0

<div class="setup-callback">
<p>After authenticating the user on Auth0, we will do a POST to a URL on your web site. For security purposes, you have to register this URL  on the <strong>Application Settings</strong> section on Auth0 Admin app.</p>

<pre><code>http://localhost:PORT/signin-auth0</pre></code>
</div>

### 3. Filling Web.Config with your Auth0 settings

The NuGet package also created four settings on `<appSettings>`. Replace those with the following settings:

```
<add key="auth0:ClientId" value="@@account.clientId@@" /><commit_msg>updated nuget name (Auth0-ASPNET-Owin)<commit_after># Using Auth0 with ASP.NET (OWIN)

This tutorial explains how to integrate Auth0 with an ASP.NET application (any kind: WebForms, MVC and even Web API) that uses the ASP.NET 4.5 Owin infrastructure.

## Tutorial

### 1. Install Auth0-ASPNET-45 NuGet package

Use the NuGet Package Manager (Tools -> Library Package Manager -> Package Manager Console) to install the **Auth0-ASPNET-45** package, running the command:

```
Install-Package Auth0-ASPNET-Owin
```

### 2. Setting up the callback URL in Auth0

<div class="setup-callback">
<p>After authenticating the user on Auth0, we will do a POST to a URL on your web site. For security purposes, you have to register this URL  on the <strong>Application Settings</strong> section on Auth0 Admin app.</p>

<pre><code>http://localhost:PORT/signin-auth0</pre></code>
</div>

### 3. Filling Web.Config with your Auth0 settings

The NuGet package also created four settings on `<appSettings>`. Replace those with the following settings:

```
<add key="auth0:ClientId" value="@@account.clientId@@" />
{'fraction_non_alphanumeric': 0.11095700416088766, 'fraction_numerical': 0.019879796578825704, 'mean_word_length': 4.6947368421052635, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3674667', 'n_tokens_mistral': 663, 'n_tokens_neox': 622, 'n_words': 269}