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

Check SASL mechanism credential requirements #489

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

Conversation

lukediamond
Copy link
Contributor

@lukediamond lukediamond commented May 25, 2021

Connecting to a server which provided X-OAUTH2 and PLAIN as SASL mechanisms, X-OAUTH2 was selected despite no token being provided. Now multiple candidate sets of required credentials are tested per mechanism (such as username/password, username/saltedPassword, userKey/clientKey all matching for SCRAM-SHA-1).

All tests pass, including a two more for a separate X-OAUTH2 mechanism.
X-OAUTH2 will now only be selected if a token credential is provided; password will no longer be used in its place.

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