34 end |
34 end |
35 |
35 |
36 function provider.get_sasl_handler() |
36 function provider.get_sasl_handler() |
37 local realm = module:get_option("sasl_realm") or module.host; |
37 local realm = module:get_option("sasl_realm") or module.host; |
38 local anonymous_authentication_profile = { |
38 local anonymous_authentication_profile = { |
39 anonymous = function(username, realm) |
39 anonymous = function(sasl, username, realm) |
40 return true; -- for normal usage you should always return true here |
40 return true; -- for normal usage you should always return true here |
41 end |
41 end |
42 }; |
42 }; |
43 return new_sasl(realm, anonymous_authentication_profile); |
43 return new_sasl(realm, anonymous_authentication_profile); |
44 end |
44 end |