We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fddafa commit debe18bCopy full SHA for debe18b
4-WebApp-your-API/README-incremental-instructions.md
@@ -252,7 +252,13 @@ using Microsoft.Identity.Web.Client.TokenCacheProviders;
252
services.AddProtectedWebApi(Configuration)
253
.AddInMemoryTokenCaches();
254
```
255
+
256
+ - Add the method **app.UseAuthentication()** before **app.UseMvc()** in the `Configure` method
257
258
+ ```Csharp
259
+ app.UseAuthentication();
260
+ app.UseMvc();
261
+ ```
262
`AddProtectedWebApi` does the following:
263
- add the **Jwt**BearerAuthenticationScheme (Note the replacement of **BearerAuthenticationScheme** by **Jwt**BearerAuthenticationScheme)
264
- set the authority to be the Microsoft identity platform
0 commit comments