Skip to content

Commit e3d64cd

Browse files
committed
Updated testing versions and docs
1 parent b4e1476 commit e3d64cd

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/actions/run-tests/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ runs:
5656
5757
# Mapping of redis version to stack version
5858
declare -A redis_stack_version_mapping=(
59-
["7.4.1"]="7.4.0-v1"
60-
["7.2.6"]="7.2.0-v13"
61-
["6.2.16"]="6.2.6-v17"
59+
["7.4.2"]="7.4.0-v3"
60+
["7.2.7"]="7.2.0-v15"
61+
["6.2.17"]="6.2.6-v19"
6262
)
6363
6464
if [[ -v redis_stack_version_mapping[$REDIS_VERSION] ]]; then

docs/advanced_features.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,31 +471,30 @@ command is received.
471471
Token-based authentication
472472
~~~~~~~~~~~~~~~~~~~~~~~~~~
473473

474-
Since redis-py version 5.3.0 new StreamableCredentialProvider interface was introduced.
475-
This interface describes a CredentialProvider with an ability to stream an events that will be handled by listener.
474+
Since redis-py version 5.3.0 new `StreamableCredentialProvider` interface was introduced.
475+
This interface describes a `CredentialProvider` with an ability to stream an events that will be handled by listener.
476476

477-
To keep redis-py with minimal dependencies needed to run it, we decided to separate StreamableCredentialProvider
477+
To keep redis-py with minimal dependencies needed to run it, we decided to separate `StreamableCredentialProvider`
478478
implementations in a separate packages. So If you're interested to try this feature please add them as a separate
479479
dependency to your project.
480480

481481
`EntraIdCredentialProvider` is a first implementation that allows you to integrate redis-py with Azure Cache for Redis
482-
service. It will allows you to obtain a tokens from Microsoft EntraID and authenticate/re-authenticate your connections
482+
service. It will allows you to obtain a tokens from `Microsoft EntraID` and authenticate/re-authenticate your connections
483483
with it in a background mode.
484484

485485
To get `EntraIdCredentialProvider` you need to install following package:
486486

487487
`pip install redis-entraid`
488488

489-
To setup a credential provider, first you have to create and configure an IdentityProvider and provide
490-
TokenAuthConfig object.
489+
To setup a credential provider, please use one of the factory methods bundled with package.
491490
`Here's a quick guide how to do this
492-
<https://github.com/redis-developer/redispy-entra-credentials?tab=readme-ov-file#usage>`_
491+
<https://github.com/redis/redis-py-entraid/blob/main/README.md>`_
493492

494493
Now all you have to do is to pass an instance of `EntraIdCredentialProvider` via constructor,
495494
available for sync and async clients:
496495

497496
.. code:: python
498497
499-
>>> cred_provider = EntraIdCredentialProvider(auth_config)
498+
>>> cred_provider = create_from_service_principal(CLIENT_ID, CLIENT_SECRET, TENANT_ID)
500499
>>> r = Redis(credential_provider=cred_provider)
501500
>>> r.ping()

0 commit comments

Comments
 (0)