-
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
[BUG] - Proxy authentication not set correctly in ServiceBusClientBuilder #24230
Comments
@alzimmermsft could you please follow up with @ram-itzme on Proxy authentication? |
Re-assigning to @ki1729 as this uses the AMQP style proxy and not the Core style proxy. |
@ram-itzme I noticed that you pasted configurations of a spring cloud stream binder, were you using the |
@saragluna I am using the azure-messaging-servicebus library. |
@saragluna Do you need any additional details from me to look into this issue ? |
@ram-itzme sorry for the late response; it was our National Day holiday. No more details from my side, but since you're using the SDK instead of the Spring library, I think @ki1729 could help you with this issue. |
@ram-itzme Thanks for bringing this up! You are right, Authentication type is never picked up when proxyOptions are loaded from the configuration. As a temproray workaround, you can set the |
Update: Core-amqp changes have been merged and should be part of the May release. The fix for service bus should be either May / June release |
Describe the bug
When service bus client is created from the apps behind corporate proxy, the proxy authentication fails because the authentication type always defaults to NONE.
This results in the client connection failure
Exception or Stack Trace
2021-09-21 21:04:17.499 ERROR 4464 --- [ctor-executor-1] c.m.a.p.transport.proxy.impl.ProxyImpl : Proxy authentication required. User configured: 'NONE', but supported proxy authentication methods are: BASIC
To Reproduce
Configure HTTP_PROXY, HTTPS_PROXY, PROXY_USERNAME, PROXY_PASSWORD variables as environment variables.
Create service bus configuration using below sample config
Run the application
Code Snippet from ServiceBusClientBuilder.java
Expected behavior
The authentication type is chosen based on the environment varaibles. and not defaulted to NONE.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please providemvn dependency:tree -Dverbose
)Additional context
Add any other context about the problem here.
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: