Skip to content

Commit ef19428

Browse files
updates
1 parent 2e1140a commit ef19428

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

articles/container-apps/token-store.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
title: Enable a token store in Azure Container Apps
2+
title: Enable an authentication token store in Azure Container Apps
33
description: Learn to secure authentication tokens independent of your application.
44
services: container-apps
55
author: craigshoemaker
66
ms.service: container-apps
77
ms.topic: how-to
8-
ms.date: 02/26/2024
8+
ms.date: 04/04/2024
99
ms.author: cshoe
1010
---
1111

12-
# Enable a token store in Azure Container Apps
12+
# Enable an authentication token store in Azure Container Apps
1313

1414
Azure Container Apps authentication supports a feature called token store. A token store is a repository of tokens that are associated with the users of your web apps and APIs. You enable a token store by configuring your container app with an Azure Blob Storage container.
1515

1616
Your application code sometimes needs to access data from these providers on the user's behalf, such as:
1717

18-
* post to the authenticated user's Facebook timeline
19-
* read the user's corporate data using the Microsoft Graph API
18+
* Post to an authenticated user's Facebook timeline
19+
* Read a user's corporate data using the Microsoft Graph API
2020

21-
You typically must write code to collect, store, and refresh these tokens in your application. With the token store, you just [retrieve the tokens](../app-service/configure-authentication-oauth-tokens.md#retrieve-tokens-in-app-code) when you need them and [tell Container Apps to refresh them](../app-service/configure-authentication-oauth-tokens.md#refresh-auth-tokens) when they become invalid.
21+
You typically need to write code to collect, store, and refresh tokens in your application. With a token store, you can [retrieve tokens](../app-service/configure-authentication-oauth-tokens.md#retrieve-tokens-in-app-code) when you need them, and [tell Container Apps to refresh them](../app-service/configure-authentication-oauth-tokens.md#refresh-auth-tokens) as they become invalid.
2222

23-
When token store is enabled, Container Apps authentication caches ID tokens, access tokens, and refresh tokens the authenticated session, and they're accessible only by the associated user.
23+
When token store is enabled, the Container Apps authentication system caches ID tokens, access tokens, and refresh tokens the authenticated session, and they're accessible only by the associated user.
2424

2525
## Generate a SAS URL
2626

@@ -30,9 +30,9 @@ Before you can create a token store for your container app, you first need an Az
3030

3131
1. Select **Containers** and create a private blob container if necessary.
3232

33-
1. Select the three dots (•••) at the end of the row for your container.
33+
1. Select the three dots (•••) at the end of the row for the storage container where you want to create your token store.
3434

35-
1. Enter the values appropriate to your needs in the *Generate SAS* window.
35+
1. Enter the values appropriate for your needs in the *Generate SAS* window.
3636

3737
> [!NOTE]
3838
> Make sure you keep track of your SAS expiration dates to ensure access to your container doesn't cease.
@@ -43,7 +43,7 @@ Before you can create a token store for your container app, you first need an Az
4343

4444
## Save SAS URL as secret
4545

46-
Now that you have generated your SAS URL, you can save it in your container app as a secret.
46+
With SAS URL generated, you can save it in your container app as a secret.
4747

4848
1. Go to your container app in the Azure portal.
4949

@@ -71,11 +71,7 @@ az containerapp auth update \
7171
--token-store true
7272
```
7373

74-
If you would like to create your store using an ARM template, use the following example.
75-
76-
```json
77-
{}
78-
```
74+
Additionally, you can create your store using an [ARM template](/rest/api/containerapps/container-apps-auth-configs/create-or-update?view=rest-containerapps-2023-11-02-preview&tabs=HTTP).
7975

8076
## Next steps
8177

0 commit comments

Comments
 (0)