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

Refactor Sasl authentication with SaslMechanism abstract base class; support SaslAuthenticate #2515

Merged
merged 6 commits into from
Mar 11, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 6, 2025

Follows idea proposed in #2256 by @mattoberle . Custom modules are available via:

from kafka.sasl import register_sasl_mechanism
from kafka.sasl.abc import SaslMechanism

class MySaslMechanism(SaslMechanism):
    # implement required abc methods ...

register_sasl_mechanism('FOO', MySaslMechanism)

Base automatically changed from dpkp/check-versions-conn-state to master March 8, 2025 02:22
@dpkp dpkp force-pushed the dpkp/sasl-authenticate branch from f4cf0dd to b198f86 Compare March 8, 2025 02:23
@dpkp dpkp force-pushed the dpkp/sasl-authenticate branch from 14a22cb to d529423 Compare March 11, 2025 00:33
@dpkp dpkp merged commit 8320cc8 into master Mar 11, 2025
16 checks passed
@dpkp dpkp deleted the dpkp/sasl-authenticate branch March 11, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant