I am working on an instant messaging web application in Web2py with Ejabberd server in backend. As Ejabberd need its own authentication, I am looking for an external authentication script so that I could use the same database (as of Web2Py) for Ejabberd.
I could find one for Django here http://www.ejabberd.im/extauth. Is there something similar already implemented for Web2Py? If, not, how should I go about writing one? Thanks, Saurabh --

