Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterblazejewicz/documentdb-todo-app-aspnet5
A port of existing Azure sample app to ASP.NET5
https://github.com/peterblazejewicz/documentdb-todo-app-aspnet5
Last synced: 25 days ago
JSON representation
A port of existing Azure sample app to ASP.NET5
- Host: GitHub
- URL: https://github.com/peterblazejewicz/documentdb-todo-app-aspnet5
- Owner: peterblazejewicz
- License: unlicense
- Created: 2015-12-19T20:12:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-20T17:20:05.000Z (almost 9 years ago)
- Last Synced: 2023-04-05T21:37:47.534Z (over 1 year ago)
- Language: C#
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure DocumentDb ToDoApp
A port of existing Azure sample app to ASP.NET5
Note: There is a real stopper to make it work:
[Missing BCrypt.dll out of the box on .NET 5 + Mono + Linux](https://social.msdn.microsoft.com/Forums/azure/en-US/a4a80fde-5282-480a-b981-2bf5bb5f64c9/missing-bcryptdll-out-of-the-box-on-net-5-mono-linux?forum=AzureDocumentDB)## Access configuration
The Azure DocumentDb access configuration is based on layered options, as discussed in:
[Getting and setting configuration settings](https://docs.asp.net/en/latest/fundamentals/configuration.html?highlight=options#getting-and-setting-configuration-settings)
[Safe Storage of Application Secrets](https://docs.asp.net/en/latest/security/app-secrets.html?highlight=user%20secrets#safe-storage-of-application-secrets)Configuration for Azure DocumentDb is layered in the following order:
- `appsettings.json`
- `appsettings.{development}.json`
- user secrets
- environment variablesThis provides flexible and secure way to configure access to DocumentDb. `AuthKey` and `EndPoint` values are not stored in application code.
You could either:
- modify `appsettings.json` and add correct values or:
- set `Azure:DocumentDb:AuthKey` and `Azure:DocumentDb:EndPoint` with `user-secret` tool or:
- add them as environment variables when starting application.The landing page displays (via `@inject` feature) values of Azure DocumentDb configuration options.
```html
- Database:
- @config.Value.Database
- Collection:
- @config.Value.Collection
- EndPoint:
- @config.Value.EndPoint
- AuthKey:
- @config.Value.AuthKey
```
## Author
@peterblazejewicz