diff options
author | Tobias Markmann <tm@ayena.de> | 2010-02-28 22:32:12 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2010-02-28 22:32:12 +0100 |
commit | cb3a0cad21e9598fb4e9ed69a4294135da755aa6 (patch) | |
tree | 3c3e5c7f31bb6b48691668709b947bf61e4c3afb /util/sasl/plain.lua | |
parent | b4ba73c8b61d4af5282dd88216a71323c967e0e6 (diff) | |
download | prosody-cb3a0cad21e9598fb4e9ed69a4294135da755aa6.tar.gz prosody-cb3a0cad21e9598fb4e9ed69a4294135da755aa6.zip |
util.sasl: Moving SASL authentication backends documentation to the mechanism files.
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r-- | util/sasl/plain.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua index ae5c777a..43bb239f 100644 --- a/util/sasl/plain.lua +++ b/util/sasl/plain.lua @@ -19,6 +19,21 @@ module "plain" -- ================================ -- SASL PLAIN according to RFC 4616 + +--[[ +Supported Authentication Backends + +plain: + function(username, realm) + return password, state; + end + +plain-test: + function(username, realm, password) + return true or false, state; + end +]] + local function plain(self, message) if not message then return "failure", "malformed-request"; |