The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 Python Authentication Projects
-
django-allauth
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
If you don't want to use Pegasus or another paid product (presumably because of the cost), the packages I'd reach for are django-allauth for login/user stuff and dj-stripe for the Stripe integration. As for teams, there wasn't a library I was happy with so I rolled my own for Pegasus, but some people like django-tenants. It's too heavyweight for my taste as it requires a more complex dev/test/infrastructure setup with Postgres schemas, as opposed to having a single-database and handling multitenancy in the application layer. But there are pros and cons to both approaches.
-
Project mention: Why are developers obsessed with sessions in the backend, even in REST APIs? | /r/learnprogramming | 2023-04-19
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Flask-AppBuilder
Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
Project mention: Pretty simple question, could be rewarding if enough people answer. | /r/flask | 2023-06-06This one might be interesting as well: https://github.com/dpgaspar/Flask-AppBuilder
-
authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
-
-
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
-
-
-
-
django-rest-auth
This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
-
-
-
-
django-two-factor-auth
Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
-
Project mention: Can someone help me understand CSRF security? (context inside) | /r/django | 2023-09-25
I am using dj-rest-auth for authentication. I am using JWT token authentication. All advice on JWT tokens is to not store them in local storage. Instead, using this package I store them in HttpOnly cookie. Now, I am apparently vulnerable to CSRF attack. So I enable JWT_AUTH_COOKIE_USE_CSRF. This checks the CSRF token on authenticated requests. However, there is still the potential vulnerability known as "login CSRF" as detailed by this issue on Github. In order to account for this, there is another setting called JWT_AUTH_COOKIE_ENFORCE_CSRF_ON_UNAUTHENTICATED. This enforces CSRF on unauthenticated views (such as login).
-
Coercer
A python script to automatically coerce a Windows server to authenticate on an arbitrary machine through 12 methods.
-
-
-
-
-
Flask-HTTPAuth
Simple extension that provides Basic, Digest and Token HTTP authentication for Flask routes
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python Authentication related posts
- Ask HN: What two software products should have a kid?
- Django Authentication Tutorial: Login, Logout, Signup, Password Change, and Password Reset
- Django SAML2 Auth is downloaded 102k times! 🎉
- Krptn: User Auth and Encryption of data at rest, derived from users’ credentials
- Django-sesame – frictionless auth with “Magic Links” for your Django project
- New, easy to integrate OAuth2 authentication for FastAPI
- Daily General Discussion - July 10, 2023
-
A note from our sponsor - WorkOS
workos.com | 18 Apr 2024
Index
What are some of the best open-source Authentication projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | django-allauth | 8,860 |
2 | PyJWT | 4,893 |
3 | Flask-AppBuilder | 4,503 |
4 | authlib | 4,254 |
5 | flask-login | 3,487 |
6 | django-oauth-toolkit | 3,013 |
7 | python-oauth2 | 2,986 |
8 | flask-base | 2,978 |
9 | python-social-auth | 2,828 |
10 | OAuthLib | 2,739 |
11 | djoser | 2,462 |
12 | django-rest-auth | 2,394 |
13 | Python Social Auth | 1,951 |
14 | email2phonenumber | 1,940 |
15 | rauth | 1,604 |
16 | django-two-factor-auth | 1,578 |
17 | dj-rest-auth | 1,568 |
18 | Coercer | 1,552 |
19 | python-jose | 1,470 |
20 | Flask-OAuthlib | 1,443 |
21 | privacyIDEA | 1,426 |
22 | mongoaudit | 1,308 |
23 | Flask-HTTPAuth | 1,249 |