Sample repository for Auth0 & Azure DocumentDB integration
C# JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
Controllers
Extensions
Models
Properties
Services
Views
wwwroot
.gitignore
Program.cs
README.md
Startup.cs
appsettings.json
global.json
project.json
web.config

README.md

Using Azure DocumentDB with Auth0

This repository acts as sample in a scenario where you want to use Azure DocumentDB as your database and integrate Auth0's authentication service by a custom database scenario.

You can read the complete guide and use case in Auth0's blog.

It includes an ASP.NET Core Web application with a appsettings.json file you need to configure with your account settings:

    {
     "Auth0": {
        "Domain": "{YOUR_AUTH0_DOMAIN}",
        "ClientId": "{YOUR_AUTH0_CLIENT_ID}",
        "ClientSecret": "{YOUR_AUTH0_CLIENT_SECRET}",
        "CallbackUrl": "{YOUR_CALLBACK_URL}"
      },
      "DocumentDb":{
        "EndpointUri":"{YOUR_DOCUMENTDB_ENDPOINT_URL}",
        "Key":"{YOUR_DOCUMENTDB_PASSWORD}",
        "DatabaseName":"{YOUR_EXISTENT_DOCUMENTDB_DATABASE_NAME}",
        "CollectionName":"{YOUR_EXISTENT_DOCUMENTDB_COLLECTION_NAME}"
      }
    }