Correct the API key name in the user secrets doc (#7215)
parent
491135b435
commit
0925108946
|
@ -1,7 +1,7 @@
|
|||
```json
|
||||
{
|
||||
"Movies": {
|
||||
"ServiceApKey": "12345",
|
||||
"ServiceApiKey": "12345",
|
||||
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Movie-1;Trusted_Connection=True;MultipleActiveResultSets=true"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
ms.author: scaddie
|
||||
ms.custom: mvc
|
||||
ms.date: 05/23/2018
|
||||
ms.date: 06/21/2018
|
||||
uid: security/app-secrets
|
||||
---
|
||||
# Safe storage of app secrets in development in ASP.NET Core
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace UserSecrets
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
_moviesApiKey = Configuration["MoviesApiKey"];
|
||||
_moviesApiKey = Configuration["Movies:ServiceApiKey"];
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace UserSecrets
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
_moviesApiKey = Configuration["MoviesApiKey"];
|
||||
_moviesApiKey = Configuration["Movies:ServiceApiKey"];
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
|
|
Loading…
Reference in New Issue