mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
8b4ed0059aabc26bde8cc228459be18836cd6f65
This PR adds support for using Azure Identity's credential classes with Redis Enterprise Entra ID authentication. The main changes include: - Add a new factory method createForDefaultAzureCredential to enable using Azure Identity credentials - Add @azure/identity as a dependency to support the new authentication flow - Add support for DefaultAzureCredential, EnvironmentCredential, and any other TokenCredential implementation - Create a new AzureIdentityProvider to support DefaultAzureCredential - Update documentation and README with usage examples for DefaultAzureCredential - Add integration tests for the new authentication methods - Include a sample application demonstrating interactive browser authentication - Export constants for Redis scopes / credential mappers to simplify authentication configuration
Node-Redis
node-redis is a modern, high performance Redis client for Node.js.
How do I Redis?
Learn for free at Redis University
Build faster with the Redis Launchpad
Installation
Start a redis-server via docker (or any other method you prefer):
docker run -p 6379:6379 -it redis/redis-stack-server:latest
To install node-redis, simply:
npm install redis
"redis" is the "whole in one" package that includes all the other packages. If you only need a subset of the commands, you can install the individual packages. See the list below.
Packages
Name | Description |
---|---|
redis |
The client with all the "redis-stack" modules |
@redis/client |
The base clients (i.e RedisClient , RedisCluster , etc.) |
@redis/bloom |
Redis Bloom commands |
@redis/graph |
Redis Graph commands |
@redis/json |
Redis JSON commands |
@redis/search |
RediSearch commands |
@redis/time-series |
Redis Time-Series commands |
@redis/entraid |
Secure token-based authentication for Redis clients using Microsoft Entra ID |
Looking for a high-level library to handle object mapping? See redis-om-node!
Contributing
If you'd like to contribute, check out the contributing guide.
Thank you to all the people who already contributed to Node Redis!
License
This repository is licensed under the "MIT" license. See LICENSE.
Languages
TypeScript
92.8%
JavaScript
7.2%