Turbogears authentication over mongodb users database

As we saw that there isn’t a lot of documentation around about how to perform authentication in turbogears over mongodb we decided to create a simple code snippet and public it here to help people trying to obtain the same thing. This is mainly a proof of concept and is quick and dirty way to obtain it. You will probably have something like ming as your model, instead of directly accessing mongo. This code also validates password over the clear text one, you will probably have hashed passwords in your database, so remember to change validate_password method as required To make it work you will have to place this code inside your config.app_cfg, it also expects you to have you […]