-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/31/2012 07:54 AM, Dinesh B Vadhia wrote:

> We want to implement a traditional Python-based email/password user 
> authentication system in a Tornado web application.  The user login 
> details are to be held in a server database.  Support for 'Forgot 
> email/password' would be a plus.  Is this possible with Repoze.who?

I don't know much about Tornado, except that it is a non-WSGI server
based around non-blocking semantics.  The repoze.who middleware is
therefore not a good fit, but you could still use the repoze.who API.
You would need to:

- - Configure the API factory at startup (e.g., with an INI file) [1]

- - On each request where you need an authenticated user, call the factory
  to get an API object[1], and then call it's methods ('authenticate',
  'remember', 'forget')[2].


See:

[1]
http://docs.repoze.org/who/2.0/api.html#using-repoze-who-without-middleware

[2] http://docs.repoze.org/who/2.0/api.html#repoze.who.interfaces.IAPI


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCRPicACgkQ+gerLs4ltQ5QFQCgrCvg18MKCI13QMP+jSPvY+pL
kY0An0wps+vNB/SiAoGmLzTsFIb4NUgs
=Agma
-----END PGP SIGNATURE-----
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to