Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.25k stars 1.93k forks source link

Provide an option to omit username for redis passwordless #40944

Open saragluna opened 2 days ago

saragluna commented 2 days ago

Description

Now the redis passwordless requires users to provide a username, this is not convenient for system assigned identity. This PR provides an option to retrieve the username from the JWT token, claim "oid".

All SDK Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

saragluna commented 2 days ago

To test this change, please follow these steps to build the dependencies locally:

After using the latest version, spring.data.redis.username can be omitted.