Skip to content

Commit 165d996

Browse files
committed
Added ROPC messaging
1 parent 2510039 commit 165d996

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

articles/azure-cache-for-redis/cache-nodejs-get-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ Microsoft Entra ID access tokens have a limited lifespan, [averaging 75 minutes]
267267

268268
## [Access Key Authentication](#tab/accesskey)
269269

270+
[!INCLUDE [redis-access-key-alert](includes/redis-access-key-alert.md)]
271+
270272
[!INCLUDE [redis-cache-access-keys](includes/redis-cache-access-keys.md)]
271273

272274
Add environment variables for your **HOST NAME** and **Primary** access key. Use these variables from your code instead of including the sensitive information directly in your code.

articles/azure-cache-for-redis/cache-python-get-started.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ If you want to skip straight to the code, see the [Python quickstart](https://gi
2929
- For Windows 11, use the [Windows Store](https://apps.microsoft.com/search/publisher?name=Python+Software+Foundation&hl=en-us&gl=US).
3030

3131
::: zone pivot="azure-managed-redis"
32+
3233
## Create an Azure Managed Redis (preview) instance
33-
[!INCLUDE [managed-redis-create](includes/managed-redis-create.md)]
3434

35+
[!INCLUDE [managed-redis-create](includes/managed-redis-create.md)]
3536

3637
::: zone-end
3738

3839
::: zone pivot="azure-cache-redis"
3940

4041
## Create an Azure Cache for Redis instance
42+
4143
[!INCLUDE [redis-cache-create](~/reusable-content/ce-skilling/azure/includes/azure-cache-for-redis/includes/redis-cache-create.md)]
4244

4345
::: zone-end
@@ -125,11 +127,11 @@ Create a Python script to that uses either Microsoft Entra ID or access keys to
125127

126128
### Create a Python script using reauthentication
127129

128-
Microsoft Entra ID access tokens have limited lifespans, [averaging 75 minutes](/entra/identity-platform/configurable-token-lifetimes#token-lifetime-policies-for-access-saml-and-id-tokens). In order to maintain a connection to your cache, you need to refresh the token. This example demonstrates how to do this using Python.
130+
Microsoft Entra ID access tokens have limited lifespans, [averaging 75 minutes](/entra/identity-platform/configurable-token-lifetimes#token-lifetime-policies-for-access-saml-and-id-tokens). In order to maintain a connection to your cache, you need to refresh the token. This example demonstrates how to do this using Python.
129131

130132
1. Create a new text file, add the following script. Then, save the file as `PythonApplication2.py`.
131133

132-
1. Replace `<Your Host Name>` with the value from your Azure Managed Redis (preview) instance. Your host name is of the form `<DNS name>.<region>.redis.azure.net`.
134+
1. Replace `<Your Host Name>` with the value from your Azure Managed Redis (preview) instance. Your host name is of the form `<DNS name>.<region>.redis.azure.net`.
133135

134136
1. Replace `<Your Username>` with the values from your Microsoft Entra ID user.
135137

@@ -332,11 +334,11 @@ Create a Python script to that uses either Microsoft Entra ID or access keys to
332334

333335
### Create a Python script using reauthentication
334336

335-
Microsoft Entra ID access tokens have limited lifespans, [averaging 75 minutes](/entra/identity-platform/configurable-token-lifetimes#token-lifetime-policies-for-access-saml-and-id-tokens). In order to maintain a connection to your cache, you need to refresh the token. This example demonstrates how to do this using Python.
337+
Microsoft Entra ID access tokens have limited lifespans, [averaging 75 minutes](/entra/identity-platform/configurable-token-lifetimes#token-lifetime-policies-for-access-saml-and-id-tokens). In order to maintain a connection to your cache, you need to refresh the token. This example demonstrates how to do this using Python.
336338

337339
1. Create a new text file, add the following script. Then, save the file as `PythonApplication2.py`.
338340

339-
1. Replace `<Your Host Name>` with the value from your Azure Cache for Redis instance. Your host name is of the form `<DNS name>.redis.cache.windows.net`.
341+
1. Replace `<Your Host Name>` with the value from your Azure Cache for Redis instance. Your host name is of the form `<DNS name>.redis.cache.windows.net`.
340342

341343
1. Replace `<Your Username>` with the values from your Microsoft Entra ID user.
342344

@@ -413,6 +415,8 @@ Microsoft Entra ID access tokens have limited lifespans, [averaging 75 minutes](
413415

414416
## [Access Key Authentication](#tab/accesskey)
415417

418+
[!INCLUDE [redis-access-key-alert](includes/redis-access-key-alert.md)]
419+
416420
[!INCLUDE [redis-cache-access-keys](includes/redis-cache-access-keys.md)]
417421

418422
### Read and write to the cache from the command line

0 commit comments

Comments
 (0)