@@ -43,7 +43,7 @@ namespace Microsoft.Identity.Web
43
43
public static class WebApiStartupHelpers
44
44
{
45
45
/// <summary>
46
- /// Protects the Web API with Microsoft Identity Platform v2.0 (AAD v2.0)
46
+ /// Protects the Web API with Microsoft identity platform ( v2.0)
47
47
/// This expects the configuration files will have a section named "AzureAD"
48
48
/// </summary>
49
49
/// <param name="services">Service collection to which to add this authentication scheme</param>
@@ -57,13 +57,13 @@ public static IServiceCollection AddProtectWebApiWithMicrosoftIdentityPlatformV2
57
57
// Add session if you are planning to use session based token cache , .AddSessionTokenCaches()
58
58
services . AddSession ( ) ;
59
59
60
- // Change the authentication configuration to accommodate the Azure AD v2.0 endpoint.
60
+ // Change the authentication configuration to accommodate the identity platform endpoint.
61
61
services . Configure < JwtBearerOptions > ( AzureADDefaults . JwtBearerAuthenticationScheme , options =>
62
62
{
63
63
// Reinitialize the options as this has changed to JwtBearerOptions to pick configuration values for attributes unique to JwtBearerOptions
64
64
configuration . Bind ( "AzureAd" , options ) ;
65
65
66
- // This is an Azure AD v2.0 Web API
66
+ // This is an identity platform Web API
67
67
options . Authority += "/v2.0" ;
68
68
69
69
// The valid audiences are both the Client ID (options.Audience) and api://{ClientID}
@@ -105,7 +105,7 @@ public static IServiceCollection AddProtectWebApiWithMicrosoftIdentityPlatformV2
105
105
}
106
106
107
107
/// <summary>
108
- /// Protects the Web API with Microsoft Identity Platform v2.0 (AAD v2.0)
108
+ /// Protects the Web API with Microsoft identity platform ( v2.0)
109
109
/// This supposes that the configuration files have a section named "AzureAD"
110
110
/// </summary>
111
111
/// <param name="services">Service collection to which to add authentication</param>
@@ -149,4 +149,4 @@ public static IServiceCollection AddProtectedApiCallsWebApis(this IServiceCollec
149
149
return services ;
150
150
}
151
151
}
152
- }
152
+ }
0 commit comments