Have you looked at http://web2py.com/books/default/chapter/29/9#Central-Authentication-Service?
Anthony On Friday, August 31, 2012 6:06:19 AM UTC-4, Pradeeshnarayan wrote: > > I have two different web2py application. (different database) > > I have a requirement like. My second application (application2) can be > used by only users whose registered in the first application (application1). > > I am planing to implement a login form in my application2. And on submit > it will send the username and password to a funtion in application1. > > Application1 function will recieve two values username and password as > string, and check in the database, if there is a record with this values in > auth_user table then return true. > > But in the auth_user table pasword is already encrypted. So please let me > know how I can encrypt my password string value and match with the database > value. > > Also please let me know if there is any better way to implement this > requirement. > > --