Skip to content

Commit b111843

Browse files
authored
Merge pull request #82769 from cstillwell89/patch-1
Fixed Cannot Resolve Method
2 parents a369d10 + 9ea7aa9 commit b111843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/develop/scenario-web-app-call-api-app-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Your web app will need to acquire a token for the downstream API. You specify it
104104
{
105105
// ...
106106
services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
107-
.AddMicrosoftIdentityWebApp(Configuration, Configuration.GetSection("AzureAd"))
107+
.AddMicrosoftIdentityWebApp(Configuration, "AzureAd")
108108
.EnableTokenAcquisitionToCallDownstreamApi(new string[]{"user.read" })
109109
.AddInMemoryTokenCaches();
110110
// ...
@@ -134,7 +134,7 @@ If you want to call Microsoft Graph, *Microsoft.Identity.Web* enables you to dir
134134
{
135135
// ...
136136
services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
137-
.AddMicrosoftIdentityWebApp(Configuration, Configuration.GetSection("AzureAd"))
137+
.AddMicrosoftIdentityWebApp(Configuration, "AzureAd")
138138
.EnableTokenAcquisitionToCallDownstreamApi(new string[]{"user.read" })
139139
.AddMicrosoftGraph(Configuration.GetSection("GraphBeta"))
140140
.AddInMemoryTokenCaches();
@@ -540,4 +540,4 @@ def _build_msal_app(cache=None):
540540

541541
At this point, when the user signs in, a token is stored in the token cache. Let's see how it's then used in other parts of the web app.
542542

543-
[Remove accounts from the cache on global sign-out](scenario-web-app-call-api-sign-in.md)
543+
[Remove accounts from the cache on global sign-out](scenario-web-app-call-api-sign-in.md)

0 commit comments

Comments
 (0)