Software /
code /
prosody
Comparison
util/sasl/plain.lua @ 2991:0fa3a7c885bd
util.sasl: Moving SASL authentication backends documentation to the mechanism files.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sun, 28 Feb 2010 22:32:12 +0100 |
parent | 2314:c2e1bde4d84d |
child | 2994:b8448e181487 |
comparison
equal
deleted
inserted
replaced
2990:21933063dd9f | 2991:0fa3a7c885bd |
---|---|
17 | 17 |
18 module "plain" | 18 module "plain" |
19 | 19 |
20 -- ================================ | 20 -- ================================ |
21 -- SASL PLAIN according to RFC 4616 | 21 -- SASL PLAIN according to RFC 4616 |
22 | |
23 --[[ | |
24 Supported Authentication Backends | |
25 | |
26 plain: | |
27 function(username, realm) | |
28 return password, state; | |
29 end | |
30 | |
31 plain-test: | |
32 function(username, realm, password) | |
33 return true or false, state; | |
34 end | |
35 ]] | |
36 | |
22 local function plain(self, message) | 37 local function plain(self, message) |
23 if not message then | 38 if not message then |
24 return "failure", "malformed-request"; | 39 return "failure", "malformed-request"; |
25 end | 40 end |
26 | 41 |