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
[WebSocket Client] Make the browser client support the token authentication #9886
[WebSocket Client] Make the browser client support the token authentication #9886
Conversation
/pulsarbot run-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use the java WebSocket client to add an integration test for this?
There is already a mock broker test, I could add a real token case for it. |
@tuteng Can you take a look at this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…cation (apache#9886) Fixes issue apache#9854 ### Motivation Currently, the WebSocket client uses the HTTP request header to transport the authentication params, but the browser javascript WebSocket client couldn't add new headers. ### Modifications Use the query param `token` to transport the authentication token for the browser javascript WebSocket client.
@codelipenghui Can you make sure this change is cherry-picked to 2.7.2? |
ok |
…cation (#9886) Fixes issue #9854 ### Motivation Currently, the WebSocket client uses the HTTP request header to transport the authentication params, but the browser javascript WebSocket client couldn't add new headers. ### Modifications Use the query param `token` to transport the authentication token for the browser javascript WebSocket client. (cherry picked from commit f1f272e)
Fixes issue #9854
Motivation
Currently, the WebSocket client uses the HTTP request header to transport the authentication params, but the browser javascript WebSocket client couldn't add new headers.
Modifications
Use the query param
token
to transport the authentication token for the browser javascript WebSocket client.Verifying this change
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
Update the WebSocket client document.