You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/token-store.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
---
2
-
title: Enable a token store in Azure Container Apps
2
+
title: Enable an authentication token store in Azure Container Apps
3
3
description: Learn to secure authentication tokens independent of your application.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: container-apps
7
7
ms.topic: how-to
8
-
ms.date: 02/26/2024
8
+
ms.date: 04/04/2024
9
9
ms.author: cshoe
10
10
---
11
11
12
-
# Enable a token store in Azure Container Apps
12
+
# Enable an authentication token store in Azure Container Apps
13
13
14
14
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.
15
15
16
16
Your application code sometimes needs to access data from these providers on the user's behalf, such as:
17
17
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
20
20
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.
22
22
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.
24
24
25
25
## Generate a SAS URL
26
26
@@ -30,9 +30,9 @@ Before you can create a token store for your container app, you first need an Az
30
30
31
31
1. Select **Containers** and create a private blob container if necessary.
32
32
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.
34
34
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.
36
36
37
37
> [!NOTE]
38
38
> 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
43
43
44
44
## Save SAS URL as secret
45
45
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.
47
47
48
48
1. Go to your container app in the Azure portal.
49
49
@@ -71,11 +71,7 @@ az containerapp auth update \
71
71
--token-store true
72
72
```
73
73
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).
0 commit comments