[PIP 97][SASL Authentication] Remove Deprecated SASL AuthenticationDataSource#authenticate Implementation #12955
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Master Issue: PIP 97 #12105
Motivation
When the SASL Authentication Provider was created in #3821, it introduced an
authenticate
method into theAuthenticationDataSource
. This method is not necessary, and was marked as deprecated in PIP 97: #12105. This PR breaks the SASL Authentication Provider's reliance on theAuthenticationDataSource#authenticate
method.As an added benefit, the
AuthenticationDataSource
is only a data source now. It is no longer overloaded as a data source and a means of authenticating data.I plan to submit a subsequent PR to remove the
SaslAuthenticationDataSource
. This change is valuable by itself because it removes the reliance onAuthenticationDataSource#authenticate
.Note also that
SaslAuthenticationState#authenticate
is also deprecated in PIP 97. I want to first get this merged before moving to the async variant.Modifications
SaslAuthenticationDataSource
to remove unnecessary method declarations.SaslAuthenticationState
to only take thePulsarSaslServer
as a parameter.SaslAuthenticationState
so that they no longer rely on theSaslAuthenticationDataSource
.Verifying this change
This change is internal to the SASL provider itself. It is covered by existing tests.
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
no-need-doc
This is a completely internal update, so no docs need updating.