From c509f1358d0aa20dfaec7a88503c0e8fb4c526a4 Mon Sep 17 00:00:00 2001 From: Dan Friedman Date: Fri, 24 Jul 2020 07:14:37 -0500 Subject: [PATCH 1/2] Updated the instructions to reflect the code --- .../4-2-B2C/README-incremental-instructions.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md b/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md index d9265b86..796397be 100644 --- a/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md +++ b/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md @@ -248,12 +248,13 @@ using Microsoft.AspNetCore.Authentication.JwtBearer; ```Csharp services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) - .AddMicrosoftWebApi("AzureAdB2C", Configuration, options => - { - Configuration.Bind("AzureAdB2C", options); + .AddMicrosoftWebApi(options => + { + Configuration.Bind("AzureAdB2C", options); - options.TokenValidationParameters.NameClaimType = "name"; - }); + options.TokenValidationParameters.NameClaimType = "name"; + }, + options => { Configuration.Bind("AzureAdB2C", options); }); ``` - Add the method **app.UseAuthentication()** before **app.UseMvc()** in the `Configure` method From d4dc0b8d1b031350bd133dce4c131bed3bde2651 Mon Sep 17 00:00:00 2001 From: Dan Friedman Date: Fri, 24 Jul 2020 07:24:22 -0500 Subject: [PATCH 2/2] Match spacing from code --- .../4-2-B2C/README-incremental-instructions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md b/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md index 796397be..599e05a6 100644 --- a/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md +++ b/4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md @@ -249,12 +249,12 @@ using Microsoft.AspNetCore.Authentication.JwtBearer; ```Csharp services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftWebApi(options => - { - Configuration.Bind("AzureAdB2C", options); + { + Configuration.Bind("AzureAdB2C", options); - options.TokenValidationParameters.NameClaimType = "name"; - }, - options => { Configuration.Bind("AzureAdB2C", options); }); + options.TokenValidationParameters.NameClaimType = "name"; + }, + options => { Configuration.Bind("AzureAdB2C", options); }); ``` - Add the method **app.UseAuthentication()** before **app.UseMvc()** in the `Configure` method