An open API service indexing awesome lists of open source software.

https://github.com/ealsur/auth0documentdb

Sample repository for Auth0 & Azure DocumentDB integration
https://github.com/ealsur/auth0documentdb

asp-net-core auth0 authentication azure-documentdb

Last synced: about 1 month ago
JSON representation

Sample repository for Auth0 & Azure DocumentDB integration

Awesome Lists containing this project

README

        

# 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](https://auth0.com/blog/documentdb-with-aspnetcore/).

It includes an ASP.NET Core Web application with a [appsettings.json](https://github.com/ealsur/auth0documentdb/blob/master/appsettings.json) file you need to configure with your account settings:
```javascript
{
"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}"
}
}