Questions tagged [dj-rest-auth]
78 questions
1
vote
0 answers
Django Allauth email templates
I tried overriding the email templates but noticed that it now sends the two templates, the content of the .txt and the HTML, I followed what was specified and created the HTML versions for the signup and the confirmation. Any ideas on how to…

n0minal
- 3,195
- 9
- 46
- 71
0
votes
0 answers
Google social login with Django + allauth + dj_rest_auth + Expo fails with "Error retrieving access token"
We are using Django with a combination of allauth and dj_rest_auth as backend and Expo for building mobile frontend. We are currently facing an issue after logging in with Google Social Login.
After setting up the google console for IOS and adding…

Nicolas Buchet
- 1
- 1
0
votes
1 answer
404 Error When Verifying Email in Dj-Rest-Auth
I'm developing an authentication API for a mobile app using dj-rest-auth in Django. After a user registers an account, a verification email is sent to the user with an activation key. However, when I try to verify the email by sending a POST request…

Karim Ahmed
- 1
- 3
0
votes
0 answers
EmailAddress model in Django allauth?
I just started using Django allauth, and I noticed that it created a new accounts_emailaddresses table. I understand this is useful for email confirmation, but if feels like this is a source of denormalization in our database.
Our current User model…

ejlu
- 41
- 4
0
votes
2 answers
dj-rest-auth TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()'
I'm using dj_rest_auth for authentication and when I click on the verify email link, this error comes out
I overriden the ConfirmEmailView of django-allauth but still getting the error
My views are:
class CustomConfirmEmailView(ConfirmEmailView):
…

Vicente Antonio G. Reyes
- 636
- 9
- 24
0
votes
0 answers
Steam OpenID dj-rest-auth dont return access token
urls.py
from django.contrib import admin
from django.urls import path, include, re_path
from rest_framework.routers import SimpleRouter
from store.views import CaseViewSet, auth, GoogleLogin, VkLogin
from .settings import STEAM_CALLBACK_URL
from…
0
votes
0 answers
Allauth with JWT
My project requires JWT authentication, but also allauth is needed. How can i get JWT tokens after login via socials? I have surfed the net completely and tired of seeking the answer, the last hope I have is here, i guess...
I tried using simple_jwt…

Bohdan
- 1
- 1
0
votes
1 answer
Overidding dj-rest-auth Registration Serializer
I am trying to override the register serializer, I want to add a name field but the default view still shows
this is my configuration in settings.py
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_EMAIL_VERIFICATION =…

bello
- 9
- 4
0
votes
0 answers
Django-allauth social with custom adapter for creating a profile in production
Iam using django-allauth with dj-rest-auth with the apple provider. The strange issue only happens in production. After getting the token from apple for verifying the user, i send it to the django backend. I made a custom adapter which is appended…

Viktor Isacenko
- 143
- 1
- 7
0
votes
0 answers
can not update adminprofile model using restapi with dj rest auth even if change permission_classes = [AllowAny] despite it work with userprofile
i have adminprofile and userprofile models, i made restapi to update fields inside them when i use it with the userprofile it works , but with admin profile it give me this erorr error :
**Code Details 401 Undocumented Error: Unauthorized Response…

mariam khaled
- 1
- 1
0
votes
0 answers
CustomUser matching query does not exist allauth
this error happens when i login in using social auth that connect with customuser model .
/accounts/google/login/callback/ CustomUser matching query does not exist.
raise self.model.DoesNotExist(
user_api.models.CustomUser.DoesNotExist: CustomUser…

mariam khaled
- 1
- 1
0
votes
1 answer
Handling mail verification using dj-rest-auth
I am able to get a verification email to the newly signed up email account. I also can verify the new email but not directly from the link sent in the email. The reason that is the confirmation link should be called with a post method, as mentioned…

alpha027
- 302
- 2
- 13
0
votes
0 answers
how to use Sendgrid, dj-rest-auth on Django
I am currently working on developing a password reset function for my project, and I want to use Sendgrid as my email backend and dj-rest-auth. Specifically, I am trying to override the email template with my custom template, but Django is still…

danny
- 3
- 1
0
votes
0 answers
ImproperlyConfigured at /api/v1/auth/registration/account-email-verification-sent/
I'm getting this error when trying to signup after updating dj-rest-auth package to 3.0.0 from 1.1.0.
main urls.py
from allauth.account.views import confirm_email
from dj_rest_auth.registration.views import VerifyEmailView
from dj_rest_auth.views…

I'mSRJ
- 173
- 8
0
votes
0 answers
dj-rest-auth overriding reset password default email template not working
I wanna override the default email that gets sent to the user when he forgets his password
here is the implementation:
#urls.py
path('dj-rest-auth/', include('dj_rest_auth.urls')),
path('dj-rest-auth/registration/',…

Mohcen CH
- 275
- 6
- 17