Skip to content

Commit 80aa2b9

Browse files
committed
🚚📚 Move SASL authenticators docs
1 parent 571be9e commit 80aa2b9

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

lib/net/imap.rb

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,37 +1003,16 @@ def starttls(options = {}, verify = true)
10031003
# All other arguments are forwarded to the authenticator for the requested
10041004
# mechanism. <em>The documentation for each individual mechanism must be
10051005
# consulted for its specific parameters.</em>
1006+
# >>>
1007+
# *Note:* See Net::IMAP::SASL documentation for a list of mechanism
1008+
# classes, and links to each mechanism's documentation.
10061009
#
10071010
# An exception Net::IMAP::NoResponseError is raised if authentication fails.
10081011
#
10091012
# Related: #login, #starttls, #auth_capable?, #auth_mechanisms
10101013
#
1011-
# ==== Supported SASL Mechanisms
1012-
#
1013-
# +PLAIN+:: See PlainAuthenticator.
1014-
# Login using clear-text username and password.
1015-
#
1016-
# +XOAUTH2+:: See XOauth2Authenticator.
1017-
# Login using a username and OAuth2 access token.
1018-
# Non-standard and obsoleted by +OAUTHBEARER+, but widely
1019-
# supported.
1020-
#
1021-
# >>>
1022-
# *Deprecated:* <em>Obsolete mechanisms are available for backwards
1023-
# compatibility.</em>
1024-
#
1025-
# For +DIGEST-MD5+ see DigestMD5Authenticator.
1026-
#
1027-
# For +LOGIN+, see LoginAuthenticator.
1028-
#
1029-
# For +CRAM-MD5+, see CramMD5Authenticator.
1030-
#
1031-
# <em>Using a deprecated mechanism will print a warning.</em>
1032-
#
10331014
# See Net::IMAP::Authenticators for information on plugging in
1034-
# authenticators for other mechanisms. See the {SASL mechanism
1035-
# registry}[https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml]
1036-
# for information on these and other SASL mechanisms.
1015+
# authenticators for other mechanisms.
10371016
#
10381017
# ===== Capabilities
10391018
#

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)