Questions tagged [django-allauth]

django-allauth is a set of pluggable django apps for authentication, registration, account management as well as 3rd party (social) account authentication

django-allauth is a set of pluggable django apps for authentication, registration, account management as well as 3rd party (social) account authentication

1673 questions
20
votes
3 answers

django-allauth social account connect to existing account on login

I have a custom user model and I am using django-allauth for social registration and login. I am trying to connect existing user to new social account when a user login using a social account who already has registered using email. I found this…
anupsabraham
  • 2,781
  • 2
  • 24
  • 35
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
3 answers

How to customize activate_url on django-allauth?

I am using Django with Django REST framework as a backend and AngularJS on frontend. For the user management I am using django-rest-auth which uses django-allauth for the user management. As the base I used demo from django-rest-auth. The problem…
19
votes
4 answers

How to populate user profile with django-allauth provider information?

I'm using django-allauth for my authentication system. I need that when the user sign in, the profile module get populated with the provider info (in my case facebook). I'm trying to use the pre_social_login signal, but I just don't know how to…
Tomer Simis
  • 193
  • 2
  • 4
18
votes
1 answer

How do I create a proper user with django allauth?

If I've an emailadress only If I don't care about a password atm (user will login through a "token link" later) In pure Django I would just do it like: from django.contrib.auth.models import User user = User.objects.create_user(username=email,…
sspross
  • 1,439
  • 1
  • 13
  • 22
18
votes
9 answers

How to override template in django-allauth?

Answers in other questions leave impression that this is in fact very easy: django-allauth configuration doubts overriding default templates of django-allauth However, I can't get it to work at all. From example app settings I can see that…
Red
  • 1,450
  • 2
  • 17
  • 33
18
votes
1 answer

Multiple User Types For Auth in Django

My web features two user types, Client and Professional. There are also two 'main modules', one for clients to buy stuff and so on (the main site), and the other for professionals to manage operations. For auth, I would like to have: A single 'sign…
jaime
  • 520
  • 5
  • 15
17
votes
3 answers

Django-allauth, JWT, Oauth

I have an AngularJS Single Page Application that uses a Django backend API based on the Django Rest Framework. The API is protected via django-rest-framework-jwt. I would like to use django-allauth for account management and authentication on the…
schacki
  • 9,401
  • 5
  • 29
  • 32
17
votes
2 answers

django-allauth: how to properly use email_confirmed signal to set user to active

In another post, I mentioned that I was trying to use allauth's email_confirmed signal to change the is_active field on the confirmed user to true. However, the following code gave me the exception "User matching query does not exist." from…
Gravity Grave
  • 2,802
  • 1
  • 27
  • 39
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…
16
votes
1 answer

How to override django allauth email templates

I'm using allauth version 0.35.0 and I want to override email templates to make my desired HTML template for them. No problem with allauth login and SignUp and etc. pages But I can't find any template for emails. It's just a .txt file in path…
SirSaleh
  • 1,452
  • 3
  • 23
  • 39
16
votes
2 answers

Enable oauth login with django-allauth but a custom provider

I have built an oauth provider using django-oauth-toolkit. I would now like to allow users of my client application to log in through this provider. My understanding is that django-allauth is the ideal tool for this. I see that django-allauth has a…
Brachamul
  • 1,886
  • 2
  • 21
  • 34
16
votes
2 answers

django-allauth SITE_ID error

I'm learning django and have decided to use django-allauth for user registration. I currently only want local accounts (I've excluded social auth from settings.py). When I access /accounts/login I get the following error: You're using the Django…
user21398
  • 1,473
  • 4
  • 18
  • 31
16
votes
1 answer

django-allauth HTML email not send

I add in my templates folder the following subfolders and files in order to override email messages (following docs https://github.com/pennersr/django-allauth#sending-e-mail)a : templates/ account/ email/ …
Matthieu
  • 1,084
  • 12
  • 23
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:…