Skip to content

Commit fc83c8e

Browse files
committed
Updating the sections about the cache
1 parent b2eada2 commit fc83c8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void ConfigureServices(IServiceCollection services)
5555
}
5656
```
5757

58-
If you're interested in understanding more about the token cache, see [Token cache serialiation options](https://github.com/AzureAD/microsoft-identity-web/wiki/token-cache-serialization)
58+
If you're interested in understanding more about the token cache, see [Token cache serialiation options](#token-cache)
5959

6060
> [!NOTE]
6161
> To fully understand the code examples here, you need to be familiar with [ASP.NET Core fundamentals](https://docs.microsoft.com/aspnet/core/fundamentals), and in particular with [dependency injection](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection) and [options](https://docs.microsoft.com/aspnet/core/fundamentals/configuration/options).
@@ -269,12 +269,12 @@ The ASP.NET core tutorial uses dependency injection to let you decide the token
269269

270270
```csharp
271271
// Use a distributed token cache by adding:
272-
services.AddMicrosoftIdentityPlatformAuthentication(Configuration)
273-
.AddMsal(new string[] { scopesToRequest })
272+
services.AddSignIn(Configuration, "AzureAd");
273+
.AddWebAppCallsProtectedWebApi(Configuration,
274+
initialScopes: new string[] { "user.read" })
274275
.AddDistributedTokenCaches();
275276

276277
// Then, choose your implementation.
277-
278278
// For instance, the distributed in-memory cache (not cleared when you stop the app):
279279
services.AddDistributedMemoryCache()
280280

0 commit comments

Comments
 (0)