https://github.com/redis/jvm-redis-authx-entraid
https://github.com/redis/jvm-redis-authx-entraid
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redis/jvm-redis-authx-entraid
- Owner: redis
- License: mit
- Created: 2024-10-31T15:02:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-21T09:07:32.000Z (11 months ago)
- Last Synced: 2025-08-02T00:54:04.405Z (10 months ago)
- Language: Java
- Size: 153 KB
- Stars: 1
- Watchers: 8
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Token-based Authentication Providers for Redis Java clients
This extension provides Token-based Authentication for Redis Java client libraries: [lettuce](https://github.com/redis/lettuce) and [Jedis](https://github.com/redis/jedis)
## Microsoft Entra ID provider
### Installation
To install the Entra ID provider, add the following dependencies to your `pom.xml` file if you're using Maven:
```xml
redis.clients.authentication
redis-authx-entraid
0.1.1-beta1
```
If you're using Gradle, add the following dependencies to your `build.gradle` file:
```
implementation 'redis.clients.authentication:redis-authx-entraid:0.1.1-beta1'
```
### Quick Start
Basic usage would look like this:
```java
TokenAuthConfig tokenAuthConfig = EntraIDTokenAuthConfigBuilder.builder()
.clientId("YOUR_CLIENT_ID").secret("YOUR_SECRET")
.authority("YOUR_AUTHORITY").scopes("SCOPES").build();
```
With the `tokenAuthConfig` provided, both Jedis and Lettuce clients can automatically handle Reauthentication with EntraID.
Refer to the [test files](https://github.com/redis/tbd-auth-entraid/tree/main/entraid/src/test/java/redis/clients/authentication) for more examples and detailed usage.