Skip to content

Commit c655632

Browse files
committed
🚚📚 Move SASL authenticators docs
1 parent 6613e80 commit c655632

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
@@ -995,40 +995,19 @@ def starttls(options = {}, verify = true)
995995
#
996996
# +mechanism+ is the name of the \SASL authentication mechanism to be used.
997997
# All other arguments are forwarded to the authenticator for the requested
998-
# mechanism. The listed call signatures are suggestions. <em>The
999-
# documentation for each individual mechanism must be consulted for its
1000-
# specific parameters.</em>
998+
# mechanism. The listed call signatures are only suggestions. Each
999+
# mechanism's authenticator must be consulted for its own specific
1000+
# parameters.
1001+
# >>>
1002+
# *Note:* See Net::IMAP::SASL documentation for a list of mechanism
1003+
# classes, and links to each mechanism's documentation.
10011004
#
10021005
# An exception Net::IMAP::NoResponseError is raised if authentication fails.
10031006
#
10041007
# Related: #login, #starttls, #auth_capable?, #auth_mechanisms
10051008
#
1006-
# ==== Supported SASL Mechanisms
1007-
#
1008-
# +PLAIN+:: See PlainAuthenticator.
1009-
# Login using clear-text username and password.
1010-
#
1011-
# +XOAUTH2+:: See XOauth2Authenticator.
1012-
# Login using a username and OAuth2 access token.
1013-
# Non-standard and obsoleted by +OAUTHBEARER+, but widely
1014-
# supported.
1015-
#
1016-
# >>>
1017-
# *Deprecated:* <em>Obsolete mechanisms are available for backwards
1018-
# compatibility.</em>
1019-
#
1020-
# For +DIGEST-MD5+ see DigestMD5Authenticator.
1021-
#
1022-
# For +LOGIN+, see LoginAuthenticator.
1023-
#
1024-
# For +CRAM-MD5+, see CramMD5Authenticator.
1025-
#
1026-
# <em>Using a deprecated mechanism will print a warning.</em>
1027-
#
10281009
# See Net::IMAP::Authenticators for information on plugging in
1029-
# authenticators for other mechanisms. See the {SASL mechanism
1030-
# registry}[https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml]
1031-
# for information on these and other SASL mechanisms.
1010+
# authenticators for other mechanisms.
10321011
#
10331012
# ===== Capabilities
10341013
#

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)