Skip to content

Commit debe18b

Browse files
author
Kalyan Krishna
authored
updated a missing step
its no longer being generated by vs.net core template
1 parent 8fddafa commit debe18b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,13 @@ using Microsoft.Identity.Web.Client.TokenCacheProviders;
252252
services.AddProtectedWebApi(Configuration)
253253
.AddInMemoryTokenCaches();
254254
```
255+
256+
- Add the method **app.UseAuthentication()** before **app.UseMvc()** in the `Configure` method
255257

258+
```Csharp
259+
app.UseAuthentication();
260+
app.UseMvc();
261+
```
256262
`AddProtectedWebApi` does the following:
257263
- add the **Jwt**BearerAuthenticationScheme (Note the replacement of **BearerAuthenticationScheme** by **Jwt**BearerAuthenticationScheme)
258264
- set the authority to be the Microsoft identity platform

0 commit comments

Comments
 (0)