Skip to content
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

[fix][client] Replace String with WebTarget in authenticationStage #23924

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nodece
Copy link
Member

@nodece nodece commented Feb 5, 2025

Motivation

This PR is based on #23905 and is used to fix the TLS context loss.

Modifications

  • Add org.apache.pulsar.client.api.Authentication#authenticationStage(javax.ws.rs.client.WebTarget, org.apache.pulsar.client.api.AuthenticationDataProvider, java.util.Map<java.lang.String,java.lang.String>, java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.lang.String>>) instead of org.apache.pulsar.client.api.Authentication#authenticationStage(java.lang.String, org.apache.pulsar.client.api.AuthenticationDataProvider, java.util.Map<java.lang.String,java.lang.String>, java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.lang.String>>) in the org.apache.pulsar.client.api.Authentication, and fix call.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 5, 2025
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change in the org.apache.pulsar.client.api.Authentication API that is exposed for plugins to implement.
There should be a PIP in place and the implementation should be made in a backwards compatible way.
It should be possible to add conditional logic when the Authentication instance implements some other interface which is for handling this particular case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants