Hi Julian, I've build a "security package" for my own framework (called "PyAMS") which includes a pluggable "security manager"' utility in which you can "plug" extensions allowing you to use several authentication plug-ins; these actually include "local users" (stored into ZODB), Authomatic connections or an (optional) LDAP directory; authentication from SQL database is planed but not done yet... Work on the whole framework is far from finished, packaging and documentation is not done yet but you can have a look to my source code from my repository (http://hg.ztfy.org/pyams).
Best regards, Thierry 2017-08-31 18:55 GMT+02:00 Julian Sanchez <[email protected]>: > Thanks Mikko. I'll take a look at the code. We won't be using SQLAlchemy > though so I'll see how much I can reuse > > On Thursday, August 31, 2017 at 11:45:45 AM UTC-5, Mikko Ohtamaa wrote: >> >> Hi Julian, >> >> Websauna implements basic sign in and sign up for you using SQLAlchemy >> persistency and Redis for sessions: >> >> https://websauna.org/docs/narrative/user/index.html >> >> It also supports Facebook, Twitter and Google OAuth and various others. >> >> Best regards, >> Mikko >> >> >> >> On 31 August 2017 at 19:42, Julian Sanchez <[email protected]> wrote: >> >>> I'm getting my feet wet with Pyramid and going through the different >>> tutorials, applying the concepts to the project I'm working on. At the >>> present time I'm interested in having basic authentication and storing the >>> username and (securely hashed) password on a database table. >>> >>> Is there something already 'pre-made' that I could reuse so I don't have >>> to write all the code from scratch? I saw the tutorial on SQLAlchemy >>> <https://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/authentication.html> >>> showing the registration code but we will not be using SQLAlchemy. The >>> other >>> tutorial >>> <https://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/authentication.html> >>> gives a flavor for checking the validity of a password but doesn't seem to >>> work with a repository of any kind (particularly a user registering into a >>> site). I've seen packages like Authomatic but they seem to provide OAuth >>> stuff. Maybe someone has made an extension to Authomatic for basic >>> authentication? How are you guys implementing authentication? >>> >>> Thanks, >>> Julian >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "pylons-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/pylons-discuss/59dd2c83-b286-4d85-a506-beeaca013322%40go >>> oglegroups.com >>> <https://groups.google.com/d/msgid/pylons-discuss/59dd2c83-b286-4d85-a506-beeaca013322%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Mikko Ohtamaa >> http://opensourcehacker.com >> http://twitter.com/moo9000 >> >> -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pylons-discuss/107c600c-d8ce-4836-ad9e-33991e619fc9% > 40googlegroups.com > <https://groups.google.com/d/msgid/pylons-discuss/107c600c-d8ce-4836-ad9e-33991e619fc9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- http://www.imagesdusport.com -- http://www.ztfy.org -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWDL9Wx1yU1p3bQGb25dz9Gcf_3Jcz9ZYOvd1R--koK-eA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
