Skip to content

Commit 4b12ba0

Browse files
authored
Adding a comment
1 parent bc564d6 commit 4b12ba0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Microsoft.Identity.Web/WebAppServiceCollectionExtensions.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ public static IServiceCollection AddMicrosoftIdentityPlatformAuthentication(
113113
/// <returns></returns>
114114
public static IServiceCollection AddMsal(this IServiceCollection services, IConfiguration configuration, IEnumerable<string> initialScopes, string configSectionName = "AzureAd")
115115
{
116+
// Ensure that configuration options for MSAL.NET, HttpContext accessor and the Token acquisition service
117+
// (encapsulating MSAL.NET) are available through dependency injection
116118
services.Configure<ConfidentialClientApplicationOptions>(options => configuration.Bind(configSectionName, options));
117-
118119
services.AddHttpContextAccessor();
119120
services.AddTokenAcquisition();
120121

@@ -158,4 +159,4 @@ public static IServiceCollection AddMsal(this IServiceCollection services, IConf
158159
return services;
159160
}
160161
}
161-
}
162+
}

0 commit comments

Comments
 (0)