Is there any two factor auth module already? What would be the simplest way to implement it?
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Is there any two factor auth module already? What would be the simplest way to implement it?
There is no two factor auth
There is no two factor auth module available. The first thing to make an implementation is to define a specification for it: As the authentication is in two steps it may require changing the XMPP authentication workflow.
Another more "adhoc" way to implement it would be to wait for a special attribute on the initial presence to accept it and disconnect the user after timeout or failing to provide a valid token.