Skip to content

Commit 413e423

Browse files
committed
🚚📚 Move SASL authenticators docs
1 parent 46fb955 commit 413e423

File tree

2 files changed

+36
-28
lines changed

2 files changed

+36
-28
lines changed

lib/net/imap.rb

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -974,40 +974,19 @@ def starttls(options = {}, verify = true)
974974
#
975975
# +mechanism+ is the name of the \SASL authentication mechanism to be used.
976976
# All other arguments are forwarded to the authenticator for the requested
977-
# mechanism. The listed call signatures are suggestions. <em>The
978-
# documentation for each individual mechanism must be consulted for its
979-
# specific parameters.</em>
977+
# mechanism. The listed call signatures are only suggestions. Each
978+
# mechanism's authenticator must be consulted for its own specific
979+
# parameters.
980+
# >>>
981+
# *Note:* See Net::IMAP::SASL documentation for a list of mechanism
982+
# classes, and links to each mechanism's documentation.
980983
#
981984
# An exception Net::IMAP::NoResponseError is raised if authentication fails.
982985
#
983986
# Related: #login, #starttls
984987
#
985-
# ==== Supported SASL Mechanisms
986-
#
987-
# +PLAIN+:: See PlainAuthenticator.
988-
# Login using clear-text username and password.
989-
#
990-
# +XOAUTH2+:: See XOauth2Authenticator.
991-
# Login using a username and OAuth2 access token.
992-
# Non-standard and obsoleted by +OAUTHBEARER+, but widely
993-
# supported.
994-
#
995-
# >>>
996-
# *Deprecated:* <em>Obsolete mechanisms are available for backwards
997-
# compatibility.</em>
998-
#
999-
# For +DIGEST-MD5+ see DigestMD5Authenticator.
1000-
#
1001-
# For +LOGIN+, see LoginAuthenticator.
1002-
#
1003-
# For +CRAM-MD5+, see CramMD5Authenticator.
1004-
#
1005-
# <em>Using a deprecated mechanism will print a warning.</em>
1006-
#
1007988
# See Net::IMAP::Authenticators for information on plugging in
1008-
# authenticators for other mechanisms. See the {SASL mechanism
1009-
# registry}[https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml]
1010-
# for information on these and other SASL mechanisms.
989+
# authenticators for other mechanisms.
1011990
#
1012991
# ===== Capabilities
1013992
#

lib/net/imap/sasl.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,35 @@ class IMAP
2121
# / | | \
2222
# EXTERNAL GSSAPI PLAIN Other mechanisms ...
2323
#
24+
# == SASL Mechanisms
25+
#
26+
# See the {SASL mechanism
27+
# registry}[https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml]
28+
# for a list of all SASL mechanisms and their specifications.
29+
#
30+
# Each mechanism has different properties and requirements. Please consult
31+
# the documentation for the specific mechanisms you are using:
32+
#
33+
# +PLAIN+:: See PlainAuthenticator.
34+
# Login using clear-text username and password.
35+
#
36+
# +XOAUTH2+:: See XOauth2Authenticator.
37+
# Login using a username and OAuth2 access token.
38+
# Non-standard and obsoleted by +OAUTHBEARER+, but widely
39+
# supported.
40+
#
41+
# === Deprecated mechanisms
42+
#
43+
# <em>Obsolete mechanisms are available for backwards compatibility. Using
44+
# a deprecated mechanism will print a warning.</em>
45+
#
46+
# >>>
47+
# For +CRAM-MD5+, see CramMD5Authenticator.
48+
#
49+
# For +DIGEST-MD5+ see DigestMD5Authenticator.
50+
#
51+
# For +LOGIN+, see LoginAuthenticator.
52+
#
2453
module SASL
2554

2655
stringprep_path = File.expand_path("sasl/stringprep", __dir__)

0 commit comments

Comments
 (0)