[PIP 97][SASL Authentication] Remove Deprecated SASL AuthenticationDataSource#authenticate Implementation#12955
Merged
merlimat merged 1 commit intoapache:masterfrom Nov 29, 2021
Conversation
Member
Author
|
@jiazhai, @merlimat, @eolivelli - PTAL |
…#authenticate Implementation
bacc743 to
f82163c
Compare
Member
Author
|
/pulsarbot run-failure-checks |
merlimat
approved these changes
Nov 29, 2021
fxbing
pushed a commit
to fxbing/pulsar
that referenced
this pull request
Dec 19, 2021
…#authenticate Implementation (apache#12955)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
authenticatemethod 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#authenticatemethod.As an added benefit, the
AuthenticationDataSourceis 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#authenticateis also deprecated in PIP 97. I want to first get this merged before moving to the async variant.Modifications
SaslAuthenticationDataSourceto remove unnecessary method declarations.SaslAuthenticationStateto only take thePulsarSaslServeras a parameter.SaslAuthenticationStateso 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
yeswas chosen, please highlight the changesDocumentation
no-need-docThis is a completely internal update, so no docs need updating.