drfauthproject
HowTo do Authentication and Authorization in Django REST Framework | Dj-Rest-Auth | Gmail | CRUD | API (by entuziaz)
django-spa-cookie-auth
Four different approaches on how to authenticate Single-Page Applications (SPAs) with session-based authentication using Django. (by duplxey)
drfauthproject | django-spa-cookie-auth | |
---|---|---|
1 | 2 | |
13 | 135 | |
- | 0.0% | |
0.0 | 2.6 | |
about 4 years ago | over 1 year ago | |
Python | Python | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
drfauthproject
Posts with mentions or reviews of drfauthproject.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Django Rest Framework Authentication with Dj-Rest-Auth
You can get the full code of this project on Github.
django-spa-cookie-auth
Posts with mentions or reviews of django-spa-cookie-auth.
We have used some of these posts to build our list of alternatives
and similar projects.
-
CSRF with DRF and SPA?
This guide and repo says that you should write an unprotected api route which returns a csrf token in the response body. Then your SPA should hit that route first, read the csrf token from the response body, then post a login requst.
-
Django Sessionbased Auth For Single Page Apps
You call the api/csrf/ endpoint: https://github.com/duplxey/django-spa-cookie-auth/blob/master/django_react_cross_origin/frontend/src/App.js#L22
What are some alternatives?
When comparing drfauthproject and django-spa-cookie-auth you can also consider the following projects:
drfx - A framework for launching new Django Rest Framework projects quickly.
djangorest-routes - 🔐 Authentication routes as a service.
django-spa - Simple Django configuration to serve a single-page app
cookiecutter-django - Cookiecutter Django + PostGres + Docker + DramatiQ