You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-Call-OwnApi/README.md
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,7 @@ The relevant code for this sample is in the `Program.cs` file, in the `RunAsync(
265
265
266
266
### TodoList Web API Code
267
267
268
-
Therelevantcodefor the Web API is on the `Startup.cs` class. We are using the method `AddProtectWebApiWithMicrosoftIdentityPlatformV2` to configure the Web API to authenticate using bearer tokens, validate them and protect the API from non authorized calls. These are the steps:
268
+
Therelevantcodefor the Web API is in the `Startup.cs` class. We are using the method `AddMicrosoftWebApiAuthentication` to configure the Web API to authenticate using bearer tokens, validate them and protect the API from non authorized calls. These are the steps:
269
269
270
270
1. Configuring the API to authenticate using bearer tokens
271
271
@@ -274,41 +274,56 @@ The relevant code for the Web API is on the `Startup.cs` class. We are using the
274
274
// 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role' instead of 'roles'
0 commit comments