Skip to content

redis/jvm-redis-authx-entraid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token-based Authentication Providers for Redis Java clients

This extension provides Token-based Authentication for Redis Java client libraries: lettuce and 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:

<dependency>
    <groupId>redis.clients.authentication</groupId>
    <artifactId>redis-authx-entraid</artifactId>
    <version>0.1.1-beta1</version>
</dependency>

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:

    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 for more examples and detailed usage.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages