- function provider.get_sasl_handler(session)
- local anonymous_authentication_profile = {
- anonymous = function(sasl, username, realm)
- session.roster = {}; -- so that the null storage backend doesn't upset rostermanager
- return true; -- for normal usage you should always return true here
- end
- };
- return new_sasl(module.host, anonymous_authentication_profile);
- end
+function provider.get_sasl_handler()
+ local anonymous_authentication_profile = {
+ anonymous = function(sasl, username, realm)
+ return true; -- for normal usage you should always return true here
+ end
+ };
+ return new_sasl(module.host, anonymous_authentication_profile);
+end