-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUERY] Migrating to new azure-messaging-eventhubs: SharedAccessSignatureTokenProvider & ConnectionStringBuilder missing #24493
Comments
@conniey could you follow up with @derSchtefan on their question? |
Hey, you would want to use credential(String, String, AzureSasCredential) when constructing your client from the EventHubClientBuilder. I hope this helps. |
@conniey Can you make sure our migration guide covers this? |
I am sorry @conniey , but I fail to see how I can use credential(String, String, AzureSasCredential) for my purpose. To clarify: In a cloud service, we are building a connection string that is based on a publisher policy and signed by an Authorization Rule's key. This connection string is then given to clients. The service creating the connection string is not using it to build a connection. As you can see in the original post we use As far as we understand there is no mechanism like this for our scenario in the new SDK. Everything in the SDK assumes that a connection is to be established with the credentials provided, there is no pure "connection string builder". |
Hey @derSchtefan Apologies for the late response here.
You are right. The classes What we missed is the case of publisher policy which requires more support than just accepting the SAS token in the client builder. We will be taking this as a feature request for the next semester. |
Hi @derSchtefan, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Query/Question
After being informed by the IntelliJ plugin that the com.microsoft.azure::azure-eventhubs SDK is replaced by azure-messaging-eventhubs, we migrated, but saw that
SharedAccessSignatureTokenProvider
andConnectionStringBuilder
are missing. We use this in a cloud service to generate EventHub Publisher Policy bound tokens like described here (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features#publisher-policy).The code used to look like this:
This was quite useful and better than manually crafting the SAS token and connection string URL.
However, these two classes are gone -- are there replacement classes or mechanisms? Either in this or a management SDK?
Or do we have to manually reimplement the logic, following official Microsoft documentation?
Why is this not a Bug or a feature Request?
It is neither a bug nor a feature request because whoever removed the classes must have had a reason.
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: