diff --git a/aspnetcore/includes/app-secrets/secrets-json-file.md b/aspnetcore/includes/app-secrets/secrets-json-file.md index 5b6c3ebc51..57605ba15b 100644 --- a/aspnetcore/includes/app-secrets/secrets-json-file.md +++ b/aspnetcore/includes/app-secrets/secrets-json-file.md @@ -1,7 +1,7 @@ ```json { "Movies": { - "ServiceApKey": "12345", + "ServiceApiKey": "12345", "ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Movie-1;Trusted_Connection=True;MultipleActiveResultSets=true" } } diff --git a/aspnetcore/security/app-secrets.md b/aspnetcore/security/app-secrets.md index 250a749735..a23c014ee1 100644 --- a/aspnetcore/security/app-secrets.md +++ b/aspnetcore/security/app-secrets.md @@ -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 diff --git a/aspnetcore/security/app-secrets/samples/1.x/UserSecrets/Startup.cs b/aspnetcore/security/app-secrets/samples/1.x/UserSecrets/Startup.cs index a951556b25..316c404b2d 100644 --- a/aspnetcore/security/app-secrets/samples/1.x/UserSecrets/Startup.cs +++ b/aspnetcore/security/app-secrets/samples/1.x/UserSecrets/Startup.cs @@ -34,7 +34,7 @@ namespace UserSecrets public void ConfigureServices(IServiceCollection services) { - _moviesApiKey = Configuration["MoviesApiKey"]; + _moviesApiKey = Configuration["Movies:ServiceApiKey"]; } public void Configure(IApplicationBuilder app) diff --git a/aspnetcore/security/app-secrets/samples/2.x/UserSecrets/Startup.cs b/aspnetcore/security/app-secrets/samples/2.x/UserSecrets/Startup.cs index b48cf72ba4..b08f727088 100644 --- a/aspnetcore/security/app-secrets/samples/2.x/UserSecrets/Startup.cs +++ b/aspnetcore/security/app-secrets/samples/2.x/UserSecrets/Startup.cs @@ -20,7 +20,7 @@ namespace UserSecrets public void ConfigureServices(IServiceCollection services) { - _moviesApiKey = Configuration["MoviesApiKey"]; + _moviesApiKey = Configuration["Movies:ServiceApiKey"]; } public void Configure(IApplicationBuilder app)