Correct the API key name in the user secrets doc (#7215)

pull/7216/head
Scott Addie 2018-06-21 14:04:15 -05:00 committed by GitHub
parent 491135b435
commit 0925108946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
```json ```json
{ {
"Movies": { "Movies": {
"ServiceApKey": "12345", "ServiceApiKey": "12345",
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Movie-1;Trusted_Connection=True;MultipleActiveResultSets=true" "ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Movie-1;Trusted_Connection=True;MultipleActiveResultSets=true"
} }
} }

View File

@ -4,7 +4,7 @@ author: rick-anderson
description: Learn how to store and retrieve sensitive information as app secrets during the development of an ASP.NET Core app. description: Learn how to store and retrieve sensitive information as app secrets during the development of an ASP.NET Core app.
ms.author: scaddie ms.author: scaddie
ms.custom: mvc ms.custom: mvc
ms.date: 05/23/2018 ms.date: 06/21/2018
uid: security/app-secrets uid: security/app-secrets
--- ---
# Safe storage of app secrets in development in ASP.NET Core # Safe storage of app secrets in development in ASP.NET Core

View File

@ -34,7 +34,7 @@ namespace UserSecrets
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
_moviesApiKey = Configuration["MoviesApiKey"]; _moviesApiKey = Configuration["Movies:ServiceApiKey"];
} }
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)

View File

@ -20,7 +20,7 @@ namespace UserSecrets
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
_moviesApiKey = Configuration["MoviesApiKey"]; _moviesApiKey = Configuration["Movies:ServiceApiKey"];
} }
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)