Skip to content

Commit d448f23

Browse files
authored
fix(downstream-api-from-api-docs): Updates code snippet
Aims to replace the Obsoleted method call mentioned in the code snippet in Option 2 (call a downstream api): - Using the existing code snippet when working with the latest Microsoft.Identity.Web package (v2.50) to use the updated (non-obsoleted) method. - Not sure if this is definitely the right method to replace this with, or where else in the documentation this also might need updating, but it resolved the Obsoleted error message I was seeing when following the current guidance
1 parent 6146de5 commit d448f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ using Microsoft.Identity.Web;
126126
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
127127
.AddMicrosoftIdentityWebApi(Configuration, "AzureAd")
128128
.EnableTokenAcquisitionToCallDownstreamApi()
129-
.AddDownstreamWebApi("MyApi", Configuration.GetSection("GraphBeta"))
129+
.AddDownstreamApi("MyApi", Configuration.GetSection("GraphBeta"))
130130
.AddInMemoryTokenCaches();
131131
// ...
132132
```
@@ -228,4 +228,4 @@ For more information about the OBO protocol, see the [Microsoft identity platfor
228228
## Next steps
229229

230230
Move on to the next article in this scenario,
231-
[Acquire a token for the app](scenario-web-api-call-api-acquire-token.md).
231+
[Acquire a token for the app](scenario-web-api-call-api-acquire-token.md).

0 commit comments

Comments
 (0)