Skip to content

Commit ad11f99

Browse files
committed
🚚📚 Move SASL authenticators docs
1 parent f4548aa commit ad11f99

File tree

2 files changed

+34
-25
lines changed

2 files changed

+34
-25
lines changed

lib/net/imap.rb

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,36 +1001,16 @@ def starttls(options = {}, verify = true)
10011001
# documentation for each individual mechanism must be consulted for its
10021002
# specific parameters.</em>
10031003
#
1004-
# An exception Net::IMAP::NoResponseError is raised if authentication fails.
1005-
#
1006-
# Related: #login, #starttls, #auth_capable?, #auth_mechanisms
1007-
#
1008-
# ==== Supported SASL Mechanisms
1009-
#
1010-
# +PLAIN+:: See PlainAuthenticator.
1011-
# Login using clear-text username and password.
1012-
#
1013-
# +XOAUTH2+:: See XOauth2Authenticator.
1014-
# Login using a username and OAuth2 access token.
1015-
# Non-standard and obsoleted by +OAUTHBEARER+, but widely
1016-
# supported.
1017-
#
10181004
# >>>
1019-
# *Deprecated:* <em>Obsolete mechanisms are available for backwards
1020-
# compatibility.</em>
1021-
#
1022-
# For +DIGEST-MD5+ see DigestMD5Authenticator.
1023-
#
1024-
# For +LOGIN+, see LoginAuthenticator.
1005+
# *Note:* See Net::IMAP::SASL documentation for a list of mechanism
1006+
# classes, and links to each mechanism's documentation.
10251007
#
1026-
# For +CRAM-MD5+, see CramMD5Authenticator.
1008+
# An exception Net::IMAP::NoResponseError is raised if authentication fails.
10271009
#
1028-
# <em>Using a deprecated mechanism will print a warning.</em>
1010+
# Related: #login, #starttls, #auth_capable?, #auth_mechanisms
10291011
#
10301012
# See Net::IMAP::Authenticators for information on plugging in
1031-
# authenticators for other mechanisms. See the {SASL mechanism
1032-
# registry}[https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml]
1033-
# for information on these and other SASL mechanisms.
1013+
# authenticators for other mechanisms.
10341014
#
10351015
# ===== Capabilities
10361016
#

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)