Questions tagged [django-rest-auth]

Django-rest-auth provides a set of REST API endpoints for Authentication and Registration

Django-rest-auth provides a set of REST API endpoints for Authentication and Registration

Features

  • User Registration with activation
  • Login/Logout
  • Retrieve/Update the Django User model
  • Password change
  • Password reset via e-mail
  • Social Media authentication

Resources

Documentation: https://django-rest-auth.readthedocs.io/en/latest/

GitHub repo: https://github.com/Tivix/django-rest-auth

jQuery demo: https://github.com/Tivix/django-rest-auth/tree/master/demo

AngularJS demo: https://github.com/Tivix/angular-django-registration-auth

584 questions
107
votes
11 answers

RuntimeError: Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

I am building an application with Django Rest Framework and AngularJs. I am using Django-rest-auth for my authentication purposes, although, I have not been able to set it up. Anyway, I am trying to set up this app with my project. I realized I need…
darkhorse
  • 8,192
  • 21
  • 72
  • 148
36
votes
4 answers

Django rest-auth allauth registration with email, first and last name, and without username

I am using django-rest-auth and allauth for login and registration in my django app. I haven't written any extra single line of code of my own for login or registration. Registration is successful with emailid and provided password. I am not using…
Thinker
  • 5,326
  • 13
  • 61
  • 137
19
votes
1 answer

What is the difference between the create and perform_create methods in Django rest-auth

I'm using the Django rest-auth package. I have a class that extends rest-auth's RegisterView, and which contains two methods, create and perform_create. What is the difference between these two methods?
GluePear
  • 7,244
  • 20
  • 67
  • 120
19
votes
2 answers

Django rest auth email instead of username

I have a django project in which I am using Django-rest-auth to do authentication. I want to use email with password to authenticate the user and not the username+password. I have following settings in my settings.py but it didn't do anything for…
Thinker
  • 5,326
  • 13
  • 61
  • 137
19
votes
9 answers

How to customize django rest auth password reset email content/template

In django rest_auth password reset, default email content look like following:- You're receiving this email because you requested a password reset for your user account at localhost:8000. Please go to the following page and choose a new…
McLosys Creative
  • 759
  • 4
  • 9
  • 19
16
votes
2 answers

Django REST-Auth Password Reset

I am completely confused by the django middleware available: I simply want to get password-reset (and later password-change) functionality running, using django with rest_auth on the backend and Vue on the frontend. Step 1: Requesting the Reset-Link…
15
votes
5 answers

Google login in django rest framework + allauth + rest-auth

I'm trying to implement Google authentication in django with allauth and rest-auth. After many hours of research, none of the solutions I found worked in my project. I based my code on a github issue:…
15
votes
1 answer

Django-rest-auth use cookie instead of Authorization header

I want to build the SPA application using Django Rest Framework as a back-end. The application will use Token authentication. For maximum security, I want to store the authentication token inside of httpOnly cookie, so it will not be accessible from…
14
votes
2 answers

Reverse for 'account_email_verification_sent' not found. 'account_email_verification_sent' is not a valid view function or pattern name

I'm trying to use allauth and rest-auth in my project and try to use the built-in function in allauth to do email verification but this what I get : and here is my code settings.py ACCOUNT_EMAIL_VERIFICATION = 'mandatory' ACCOUNT_EMAIL_REQUIRED =…
14
votes
1 answer

django-rest-auth: social login with google

The django-rest-auth documentation discusses Facebook integration, which I am not interested in-- my concern is providing social login via Google. I have tried this for quite some time now and I'm wondering if anyone else has any documentation on…
blawney_dfci
  • 594
  • 5
  • 18
14
votes
2 answers

How can i make django-rest-framework-jwt return token on registration?

I have a basic django rest service, which registers a person and updates his password. I want to add jwt authentication on top of it. If I follow the tutorial I would need to add a new url named "api-token-auth" in project's urls.py. But, I…
14
votes
3 answers

Django-allauth retrieve avatar profile pictures

I use django-rest-auth and django-allauth about user registration/login using user's Facebook profile. Now, I can take some standard information from Facebook (default for all auth). Is possible to retrieve also list of avatar-pictures? How can make…
Safari
  • 11,437
  • 24
  • 91
  • 191
13
votes
1 answer

How can I use `django-rest-knox` with `django-rest-auth`?

I'd like to use django-rest-auth to easily make use of the registration and social auth features of django-allauth in my API. I'd also like to use django-rest-knox, as it provides a token per device, rather than per user. When creating a user via…
13
votes
2 answers

django rest auth facebook code for login

On project I use django-rest-auth for user registration and authentication. Also i added code for facebook login: from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter from rest_auth.registration.views import…
Simple runner
  • 445
  • 6
  • 19
13
votes
5 answers

ImproperlyConfigured at /rest-auth/registration/account-confirm-email

I'm using django-rest-auth for user signup and verify email. I'm able to successfully send the email when a user signs up. Howvever, on email verification, I'm getting this error with the following traceback: File…
Saurabh Verma
  • 6,328
  • 12
  • 52
  • 84
1
2 3
38 39