Skip to content

🚚 Move and rename SASL authenticators - #165

Merged
nevans merged 2 commits into
ruby:masterfrom
nevans:move-and-rename-sasl-authenticators
Sep 9, 2023
Merged

🚚 Move and rename SASL authenticators#165
nevans merged 2 commits into
ruby:masterfrom
nevans:move-and-rename-sasl-authenticators

Conversation

@nevans

@nevansnevans commented Sep 9, 2023

Copy link
Copy Markdown
Collaborator
  • Net::IMAP#authenticate still behaves identically to before
  • Net::IMAP::PlainAuthenticator and Net::IMAP::Xoauth2Authenticator have been moved to Net::IMAP::SASL::PlainAuthenticator and Net::IMAP::SASL::XOAuth2Authenticator. The original constants still work but are deprecated.
  • Net::IMAP::DigestMD5Authenticator, Net::IMAP::LoginAuthenticator, and Net::IMAP::CramMD5Authenticator were also moved to Net::IMAP::SASL. The original constants have simply been removed.
  • Net::IMAP::Authenticators has also been moved to Net::IMAP::SASL and has been converted to a class (with a default global instance). The original mixin module still exists and delegates to Net::IMAP::SASL, but it is deprecated.

The original constants for the `PLAIN` and `XOAUTH2` authenticators are
now deprecated aliases.
The constants for deprecated mechanisms were simply moved, with no
regard for backward compatibility.
The original methods (`Net::IMAP.authenticator` and
`Net::IMAP.add_authenticator`) both still work, by delegation to the
new methods. But they have been deprecated and will issue warnings.
@nevansnevans added the SASL 🔒 Authentication and authentication mechanisms label Sep 9, 2023
@nevansnevans changed the title 🚚 Move and rename sasl authenticators🚚 Move and rename SASL authenticatorsSep 9, 2023
@nevans
nevans merged commit aed3a57 into ruby:masterSep 9, 2023
@nevans
nevans deleted the move-and-rename-sasl-authenticators branch September 9, 2023 22:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SASL 🔒Authentication and authentication mechanisms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@nevans