dj-rest-auth
django-vue-cli-webpack-demo
Our great sponsors
dj-rest-auth | django-vue-cli-webpack-demo | |
---|---|---|
22 | 3 | |
1,572 | 108 | |
2.5% | - | |
6.1 | 0.0 | |
4 days ago | about 1 year ago | |
Python | Python | |
MIT License | - |
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.
dj-rest-auth
-
Can someone help me understand CSRF security? (context inside)
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).
-
Social authentication in django rest framework.
Try to use https://github.com/iMerica/dj-rest-auth
-
djoser is dead?
I was using djoser in the past. Now Im using very similar dj-rest-auth https://github.com/iMerica/dj-rest-auth
- How can I add Login/Register/Logout endpoints?
-
How can I add Login/Register/Logout endpoint
you can use this.
-
How could we do a reliable social authentication api with custom user model?
I found the dj-rest-auth as a method of making a rest auth api, unfortunately when using the documentation I have this error coming up.
-
Login error when using Google OAuth with dj-rest-auth. Getting "redirect_uri_mismatch" error but the callback url seems to be configured correctly
I've followed the documentation: https://dj-rest-auth.readthedocs.io/en/latest/index.html
-
Django REST Framework and JS Framework (React here) authentication.
Right now, I'm using dj-rest-auth for Token based authentication. I store token in the localStorage. Earlier I was using djoser for adding auth in the project (I wrote article about my approach with djoser).
-
The Best GitHub Repositories For Django Developers.
Please use https://github.com/iMerica/dj-rest-auth as this project is no longer maintained. Thanks!
- Django with React Frontend
django-vue-cli-webpack-demo
-
Django Template-Driven app & vue.js
Yes it's possible, depends on what you want to do/how involved you want vue to be. you can add vue directly in a script tag if you want super simple(https://vuejs.org/v2/guide/installation.html#Direct-lt-script-gt-Include) or you can get as complex as using vue to to run a SPA and webpack (https://github.com/EugeneDae/django-vue-cli-webpack-demo)
-
SPA With Django
https://github.com/EugeneDae/django-vue-cli-webpack-demo To run this project first start the django server with manage.pyrunserver, then navigate to the client directory, run npm install and then npm run serve. If you navigate to the index page you'll see Vue running on the frontend.
-
The frontend framework paralysis
I ended up using this approach for a pretty substantial project and is working out very well ::https://github.com/EugeneDae/django-vue-cli-webpack-demo
What are some alternatives?
django-rest-framework-simplejwt - A JSON Web Token authentication plugin for the Django REST Framework.
django-react-boilerplate - Django 5, React, Bootstrap 5 with Python 3 and webpack project boilerplate
drf-yasg - Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
django-webpack-loader - Transparently use webpack with django
django-auth-adfs - A Django authentication backend for Microsoft ADFS and AzureAD
django-webpack-starter - Django Webpack starter template for using Webpack 5 with Django 3.1 & Bootstrap 4. Yes, it can hot-reload.
django-two-factor-auth - Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
django-nuxt-starter
htmx - </> htmx - high power tools for HTML
django-oauth-toolkit-spa - A set of out-of-box REST endpoints for auth operations, providing refresh token in HttpOnly cookie and access token in body, perfect for SPA web apps. Built on top of models provided by django-oauth-toolkit.
django-vitevue - Manage Vitejs frontends for Django