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: README.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
The`redis-entra-id` Python package helps simplifying the authentication with [Azure Managed Redis](https://azure.microsoft.com/en-us/products/managed-redis) and Azure Cache for Redis using Microsoft Entra ID (formerly Azure Active Directory). It enables seamless integration with Azure's Redis services by fetching authentication tokens and managing the token renewal in the background. This package builds on top of `redis-py` and provides a structured way to authenticate by using a:
1
+
from redis.auth.token_manager import RetryPolicyThe`redis-entra-id` Python package helps simplifying the authentication with [Azure Managed Redis](https://azure.microsoft.com/en-us/products/managed-redis) and Azure Cache for Redis using Microsoft Entra ID (formerly Azure Active Directory). It enables seamless integration with Azure's Redis services by fetching authentication tokens and managing the token renewal in the background. This package builds on top of `redis-py` and provides a structured way to authenticate by using a:
2
2
3
3
* System-assigned managed identity
4
4
* User-assigned managed identity
@@ -35,7 +35,7 @@ You need to install the `redis-py` Entra ID package via the following command:
35
35
pip install redis-entra-id
36
36
```
37
37
38
-
The package depends on [redis-py](https://github.com/redis/redis-py/tree/v5.3.0b4) version `5.3.0b4`.
38
+
The package depends on [redis-py](https://github.com/redis/redis-py).
39
39
40
40
## Usage
41
41
@@ -45,31 +45,38 @@ After having installed the package, you can import its modules:
45
45
46
46
```python
47
47
import redis
48
-
from redis_entraid import identity_provider
49
48
from redis_entraid import cred_provider
50
49
```
51
50
52
-
### Step 2 - Define your authority based on the tenant ID
51
+
### Step 2 - Create the credential provider via the factory method
> This step is going to be removed in the next pre-release version of `redis-py-entraid`. Instead, the factory method will allow to pass the tenant id direclty.
61
+
### Step 3 - Provide optional token renewal configuration
59
62
60
-
### Step 3 - Create the identity provider via the factory method
0 commit comments