Skip to content

[FEATURE REQ] Spring Cloud Stream Binder Servicebus and EventHub Support For Token Credential #47285

@gtkaczka

Description

@gtkaczka

Is your feature request related to a problem? Please describe.
We are being asked to change our credential type in spring cloud stream binder service bus/eventhubs from default azure credential to a com.azure.core.credential.TokenCredential token credential. Want confirmation if this is possible and if not can it be added since it is supported for spring cloud azure. See documentation links below.

Spring Cloud Azure provides support for token bean credential:
com.azure.core.credential.TokenCredential
https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configuration-properties-global

However I do not see the same for spring cloud stream.
https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/spring-cloud-stream-support?tabs=SpringCloudAzure5x

Based on its omission from the documentation I am assuming it is not supported. I can create the token but the binder ignores it and just defaults to trying to use Default Azure Credential.

Describe the solution you'd like
Spring Cloud Stream Support for: com.azure.core.credential.TokenCredential

Describe alternatives you've considered
Currently we use Default Azure Credential, I have raised a support ticket with Microsoft, and the support engineer asked me to raise a feature request here.

Additional context
Microsoft Support Ticket: 2511050040006790
Microsoft Support Engineer: Abhisek Mohanty

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions