apache/pulsar

Make Java Client Authentication Asynchronous

Open

#19,429 opened on Feb 5, 2023

View on GitHub
 (13 comments) (0 reactions) (0 assignees)Java (13,697 stars) (3,485 forks)batch import
Stalearea/clientgood first issuehelp wantedtype/enhancement

Description

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

The OAuth2 client's authenticate call is blocking, which is not great for the client, and is bad for the proxy because the proxy authenticates from a netty event loop.

Solution

In the same way that PIP 97 #12105 make the AuthenticationProvider async, we should update the Authentication interface.

Alternatives

No response

Anything else?

This change will likely require a PIP. I am unable to write such a PIP at this time, so I am creating this issue to keep track of this missing feature.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Contributor guide