Skip to content

Commit dc1cd5e

Browse files
Updated the instructions to reflect the code (#384)
* Updated the instructions to reflect the code * Match spacing from code
1 parent 7712f27 commit dc1cd5e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: 4-WebApp-your-API/4-2-B2C/README-incremental-instructions.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,13 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
248248

249249
```Csharp
250250
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
251-
.AddMicrosoftWebApi("AzureAdB2C", Configuration, options =>
252-
{
253-
Configuration.Bind("AzureAdB2C", options);
251+
.AddMicrosoftWebApi(options =>
252+
{
253+
Configuration.Bind("AzureAdB2C", options);
254254

255-
options.TokenValidationParameters.NameClaimType = "name";
256-
});
255+
options.TokenValidationParameters.NameClaimType = "name";
256+
},
257+
options => { Configuration.Bind("AzureAdB2C", options); });
257258
```
258259

259260
- Add the method **app.UseAuthentication()** before **app.UseMvc()** in the `Configure` method

0 commit comments

Comments
 (0)