Python Authomatic with local user / user database?

I am considering introducing authentication into my project (I am currently using Auth0) and have come across Authomatic, which looks cool and promising.

A bit of background: I have one WSGI application (without a framework), and I would like to support both database logins and social inputs. I see that Authomatic has good support for social / OAuth (2) providers, so I assume that it has everything I need (presumably creating secure cookies / tokens for session authentication), except for the local provider.

So, the parts that I will need to add will be: 1. WSGI adapter 2. local / database provider, for example https://github.com/jaredhanson/passport-local/tree/master/examples/express3-mongoose

I assume that it is not too difficult to add a local / database provider, but I wanted to check: 1. Is this a good idea, I think about it correctly? and 2. Has anyone done this already?

Many thanks!

+4
source share

Source: https://habr.com/ru/post/1584554/


All Articles