Skip to content

Commit efe3efa

Browse files
authored
Update cache-python-get-started.md
1 parent b40cf60 commit efe3efa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ The following example used `pip3` for Python 3 to install `redis-py` on Windows
3737

3838
:::image type="content" source="media/cache-python-get-started/cache-python-install-redis-py.png" alt-text="Screenshot of a terminal showing an install of redis-py interface to Azure Cache for Redis.":::
3939

40-
## [EntraID Authentication (recommended)](#tab/entraid)
40+
## [Microsoft EntraID Authentication (recommended)](#tab/entraid)
4141

42-
## Enable EntraID and add a User or Service Principal
42+
## Enable Microsoft EntraID and add a User or Service Principal
4343
<--Fran, we probably need an include file on enabling EntraID-->
44-
Blah blah blah, do the steps listed [here](cache-azure-active-directory-for-authentication.md)
44+
Blah blah blah, do the steps listed [here](cache-azure-active-directory-for-authentication)
4545

4646
## Install the Microsoft Authentication Library
47-
The [Microsoft Authentication Library (MSAL)](../../entra/identity-platform/msal-overview.md) allows you to acquire security tokens from Microsoft identity to authenticate users. There is a [Python Azure idenitty client library](../../python/api/overview/azure/identity-readme.md) available that uses MSAL to provide token authentication support. Install this library using `pip`:
47+
The [Microsoft Authentication Library (MSAL)](../../entra/identity-platform/msal-overview) allows you to acquire security tokens from Microsoft identity to authenticate users. There's a [Python Azure identity client library](../../python/api/overview/azure/identity-readme) available that uses MSAL to provide token authentication support. Install this library using `pip`:
4848

4949
```python
5050
pip install azure-identity
5151
```
5252

5353
## Create a sample python app
54-
Create a new text file, add the following script, and save the file as `PythonApplication1.py`. 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`. Replace `<Your Username>` with the values from your EntraID user.
54+
Create a new text file, add the following script, and save the file as `PythonApplication1.py`. 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`. Replace `<Your Username>` with the values from your Microsoft EntraID user.
5555

5656
```python
5757
import redis
@@ -94,10 +94,10 @@ Run `PythonApplication1.py` with Python. You should see results like the followi
9494

9595
:::image type="content" source="media/cache-python-get-started/cache-python-completed.png" alt-text="Screenshot of a terminal showing a Python script to test cache access.":::
9696

97-
## Create a sample python app with re-authentication
98-
EntraID 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.
97+
## Create a sample python app with reauthentication
98+
Microsoft EntraID 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.
9999

100-
Create a new text file, add the following script, and save the file as `PythonApplication2.py`. 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`. Replace `<Your Username>` with the values from your EntraID user.
100+
Create a new text file, add the following script, and save the file as `PythonApplication2.py`. 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`. Replace `<Your Username>` with the values from your Microsoft EntraID user.
101101

102102
```python
103103
import time
@@ -168,7 +168,7 @@ Run `PythonApplication2.py` with Python. You should see results like the followi
168168

169169
:::image type="content" source="media/cache-python-get-started/cache-python-completed.png" alt-text="Screenshot of a terminal showing a Python script to test cache access.":::
170170

171-
Unlike the first example, If your token has expired, this example will automatically refersh it.
171+
Unlike the first example, If your token expires, this example automatically refreshes it.
172172

173173
## [Access Key Authentication](#tab/accesskey)
174174
[!INCLUDE [redis-cache-create](includes/redis-cache-access-keys.md)]

0 commit comments

Comments
 (0)