Skip to content

Commit e367a85

Browse files
authored
Rename the AddPop method (#146)
into AddProofOfPosession
1 parent d2b2180 commit e367a85

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

4.-Console-app-calls-web-API-with-PoP/Microsoft.Identity.Web.Future/WebApiServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.Identity.Web
1313
/// </summary>
1414
public static class WebApiServiceCollectionExtensions
1515
{
16-
public static IServiceCollection AddPop(
16+
public static IServiceCollection AddProofOfPosession(
1717
this IServiceCollection services,
1818
IConfiguration configuration,
1919
string configSectionName = "AzureAd")

4.-Console-app-calls-web-API-with-PoP/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,17 +296,17 @@ With PoP, the programming model is a bit different from the way MSAL.NET usually
296296

297297
### Code for the Web API (TodoListService)
298298

299-
The code for the TodoListService starts in Startup.cs, where you will call `AddPop()`
299+
The code for the TodoListService starts in Startup.cs, where you will call `AddProofOfPosession()`
300300
public void ConfigureServices(IServiceCollection services)
301301
{
302302
services.AddProtectedWebApi(Configuration)
303303
.AddProtectedApiCallsWebApis(Configuration)
304-
.AddPop(Configuration)
304+
.AddProofOfPosession(Configuration)
305305
.AddInMemoryTokenCaches();
306306
services.AddControllers();
307307
}
308308

309-
`AddPop()` really leverages the [`SignedHttpRequest`](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/wiki/SignedHttpRequest-aka-PoP-(Proof-of-Possession))feature in `IdentityModel` (middleware library). The incoming token ends-up being handled by an ASP.NET Core handler named `SignedHttpRequestAuthenticationHandler`. For details, see [SignedHttpRequestAuthenticationHandler.cs](https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2/blob/7d999f6180ea90171b9a90ca931a0d3de2c035f5/Microsoft.Identity.Web/SignedHttpRequest/SignedHttpRequestAuthenticationHandler.cs#L44) from line 44.
309+
`AddProofOfPosession()` really leverages the [`SignedHttpRequest`](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/wiki/SignedHttpRequest-aka-PoP-(Proof-of-Possession))feature in `IdentityModel` (middleware library). The incoming token ends-up being handled by an ASP.NET Core handler named `SignedHttpRequestAuthenticationHandler`. For details, see [SignedHttpRequestAuthenticationHandler.cs](https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2/blob/7d999f6180ea90171b9a90ca931a0d3de2c035f5/Microsoft.Identity.Web/SignedHttpRequest/SignedHttpRequestAuthenticationHandler.cs#L44) from line 44.
310310

311311
### Update the `TodoListClient` to call the `TodoListService` running in Azure Web Sites
312312

4.-Console-app-calls-web-API-with-PoP/TodoListService/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void ConfigureServices(IServiceCollection services)
2525
{
2626
services.AddProtectedWebApi(Configuration)
2727
.AddProtectedWebApiCallsProtectedWebApi(Configuration)
28-
.AddPop(Configuration)
28+
.AddProofOfPosession(Configuration)
2929
.AddInMemoryTokenCaches();
3030
services.AddControllers();
3131
}

0 commit comments

Comments
 (0)