Questions tagged [django-allauth]

1

votes
1

answer
52

Views

Django all auth: How to override the confirmation email url

What I want to do is to override confirmation email url in templates/account/email/email_confirmation_message.txt. I want to change this part To confirm this is correct, go to {{ activate_url }} to something like http://localhost:8080/confirm_email/{{ key }} However, I couldn't figure out where {{...
Ooto
1

votes
3

answer
967

Views

Django allauth LinkedIn API not returning full profile data

I have a an app with which I'm experimenting with Django Allauth, specifically the LinkedIn api. I am defining the scope in my settings like so: SOCIALACCOUNT_PROVIDERS = \ { 'linkedin': { 'SCOPE': ['r_fullprofile', 'r_emailaddress'] } } And I am outputting this info to a template using: {% extends...
Darwin Tech
1

votes
1

answer
164

Views

Use email to login in Django 1.11, I use cookiecutter-django with allauth

I started using cookiecutter-django because it seems so much advanced than just django-admin to start my project. So I created an eCommerce website and it requires only email to log in not the username. So, I tried to follow the docs and changes my settings.py like this: ACCOUNT_USER_MODEL_USERNAME_...
Dhaval Savalia
1

votes
1

answer
158

Views

Not found: /accounts/facebook/login in django allauth

What I am trying to do ? I am trying to login the user using their social account and I am doing this with the help of Django allauth. What is the problem ? My project works fine on my laptop (which is broken now) but I don't know why it doesn't work on my desktop. I get the following error on the c...
Ahtisham
1

votes
0

answer
667

Views

How to fix the Django All-Auth SocialApp matching query Error?

I'm using the Django All-auth login template. My app runs but when I click on the GitHub link I get these errors. The template has: {% get_providers as socialaccount_providers %} so the GitHub login should work, right? What do these errors below mean? DoesNotExist at /accounts/github/login/ SocialA...
PandaNinja
1

votes
0

answer
93

Views

Django-Allauth remove email field in signup form

I only use Linked-In as means to authenticate. When the user gives permission in Linked-In, he get's send to my own form so I can gather extra information. But it seems Allauth only lets me add fields to the default form using: ACCOUNT_SIGNUP_FORM_CLASS = 'myapp.forms.MySignUpForm' But the email fie...
1

votes
0

answer
126

Views

Django all auth multiple user type

Im trying to implement two user types while using all-auth out of the box with django 1.11 cookiecutter. Ive tried the solution here Multiple user type sign up with django-allauth But the seeker type one to one relationship is never created only the user. Anyone implement this before? TIA Models f...
BrianBola
1

votes
0

answer
215

Views

Django email confirmation sending, but link not working | Allauth, Anymail, Mailgun, HTTPS

Email confirmation is sending, but confirmation link is not working. I have a django web app and am using Django Cookiecutter. My web app is currently https and connected and configured properly to send confirmation emails. Once a user attempts to sign up the email confirmation gets sent. The email...
Sam Piecz
1

votes
0

answer
125

Views

Django Allauth very specific redirection after Facebook Social Signup

I know there are a few questions on the topic already but I have tried to implement those solutions and could not really solve my problem. I am talking about social signup with allauth here, and facebook in particular. DESIRED BEHAVIOR: after facebook signup I want user to go to my url 'accounts:wel...
1

votes
0

answer
89

Views

Django all-auth custom login form security?

I am planning to use Django all_auth custom login/register for the authentication. I am able to customize the form successfully. I am referring to this answer on stackoverflow: Adding security questions to my Django site However, i cannot find a doc or information to add a security question and ans...
robd
1

votes
0

answer
113

Views

django allauth : how can I get linkedin data - r_basicprofile, position_fields, location_fields

I'm using django-allauth==0.35.0 for sociallogin. (only linkedin, using OAUTH 2.0) Based on Linkedin developers documentation, (https://developer.linkedin.com/docs/fields) I tried to get Basic Profile Fields (r_basicprofile in allauth), also Location Fields and Position Fields if possible. I add SO...
seuling
1

votes
0

answer
68

Views

Django rest auth register user as an admin

I am using Django rest auth and allauth to login and register users. I can register users by sending username, email, pwd1, pwd2. It is successful. I am wondering, how can I register a user as an admin, do I need to send any extra parameter?
Thinker
1

votes
0

answer
113

Views

Django allauth: Getting an IntegrityError during user creation

I saw a few discussions relating to this, but it seems the common cause of this is entering ACCOUNT_USER_MODEL_USERNAME_FIELD=None, which I'm not doing. The exact error is: duplicate key value violates unique constraint 'auth_user_username_key' DETAIL: Key (username)=(testaccount) already exists. (...
victor james
1

votes
1

answer
136

Views

prevent user login after registration using django-allauth

i'm using django-allauth for my django app. by default, when a user successfully sign's up, they are automatically logged in. how do you override the default behaviour and prevent the user from logging in after after successful signup. After the user signs up, he/she must be redirected to the login...
JoshM
1

votes
1

answer
623

Views

django-allauth Custom signup form. How to add a field with image uploadI(image field)?

I'm using Django and Allauth. I need the user to be able to upload photos when registering. At the moment form works, but the selected photo does not load Models.py: class Profile(AbstractUser): bdate = models.DateField( blank=True, null=True, default='1990-01-01') photo = models.ImageField(upload_...
Dmitry Dmitryev
1

votes
0

answer
58

Views

Django allauth - can I disable redirects after Social logins?

I would like to disable redirects after Social logins in django allauth, i.e. if a user is on page 'X' (and not logged in), then chooses to log in (via ajax request), they should remain on page 'X' (no reload/redirect etc.). This functionality would be similar to the normal Account setting, i.e. 'AC...
appletoad
1

votes
0

answer
259

Views

Use Google API with a token [Django & AllAuth]

I am using AllAuth on my Django app to manage user authentication. With that my users can connect their Google accounts and i get a google API token (with appropriate scopes). I would like to use that token to access google APIs (Calendar v3 in my case) with that token, as my user already used OAut...
Simon
1

votes
0

answer
100

Views

django-allauth : remove the password field in signup form

I'm using Django-allauth in my project, coupled with Django-sesame from login, which sends links by emails for users to login without the password. However, Django-sesame does not handle signups. I am trying to remove the password fields from the signup form, since passwords are not used for login....
Mars
1

votes
1

answer
152

Views

Django allauth in admin instead of default user

I'm using Django 2 and have implemented user authentication using django-allauth plugin. It is working fine from the frontend side, but the users are to be created by the superuser, therefore I need same integration in admin panel also. As of now, Django-admin has default users model with username a...
Anuj TBE
1

votes
0

answer
44

Views

django-allauth; how to just redirect to a page if the user's email is invalid

I'm trying to limit the email to a specific domain. My custom adapter is like this class CustomSocialAccountAdapter(DefaultSocialAccountAdapter): def pre_social_login(self, request, sociallogin): user = sociallogin.user if not user.email.split('@')[1] == 'example.com': what I want to do is just to...
1

votes
0

answer
130

Views

Django Allauth Login instead of Signup

I am using Django allauth for providing social login using GitHub and google. I have users already registered. I have to log in the users based on their emails. Firstly I tried authenticating with google, and it redirected me to a link /accounts/social/signup/ It prompted me a form with username and...
rammanoj
1

votes
0

answer
53

Views

django allauth redirect issue debug

I am facing some problem while working with django-allauth. I am using google authentication with the help of django-allauth. I have set the redirect url in the google api console as directed in the official documentation.Also, I have set the LOGIN_REDIRECT_URL as stated in the documentation. Author...
Aishwary Shukla
1

votes
1

answer
253

Views

Django-allauth use for facebook login/signup on a json api

I'm evaluating django-allauth for my api. This api must support user signup via json over http as it's powering a phone app. Reviewing the example demonstrates usage with django templates, i.e. html pages via traditional request-response cycle in a browser. Is it possible to use django-allauth views...
Harry Moreno
1

votes
0

answer
46

Views

custom validation on django-allauth

I'm using dj-allauth on my django app. When people sign up to my django project/app, I want to check that the domain on their email matches mydomain.com. Is this possible? I think I can do it by changing the signup form. I've tried the following which doesn't seem to do anything when I submit the...
Doug Smith
1

votes
1

answer
74

Views

Django Allauth urls giving blank pages

I have installed Django-allauth on my site, I made a modal with both login and signup in it, the login and signup works ok (doh I have a problem that if the login isn't good it just freezes at a white page) the problem is that under login, I have a forgot your password button, but once clicked it r...
mariepiercm
1

votes
1

answer
133

Views

Chronic timeout issue with Google's API via python?

I am working on a little web app to help me manage my gmail. I have set it up through Google's API with the following function using the OAuth token I received through django-allauth. import google.oauth2.credentials from .choices import GMAIL from allauth.socialaccount.models import SocialToken, S...
Adam Starrh
1

votes
1

answer
91

Views

AttributeError with django-rest-auth and django-rest-knox - Token Serializer

I am currently setting up a django backend for a React frontend app. As part of of, I am using django-rest-auth and django-allauth for registration and authentication. I wanted to implement better token management through django-rest-knox. I used the following code to start from and modify my exis...
AlexM88
1

votes
0

answer
84

Views

django-rest-auth registration/account-confirm-email/ how to use it to verify the user

I have used django allauth for user sign up and once the user registers, an email with the following url is sent to the user: http://127.0.0.1:8000/rest-auth/registration/account-confirm-email/MTY:1ggGpL:n8gHmRfOzgjR2vZTHopxiUkCe-w/ according to this: https://github.com/Tivix/django-rest-auth/issue...
Nabat Farsi
1

votes
0

answer
42

Views

Facebook login popup flickering with django-allauth and docker

I am trying to integrate django-allauth with docker. While login with facebook getting error in console: Refused to execute script from 'https://www.localhost/static/facebook/js/fbconnect.js' because its MIME type ('image/png') is not executable. And I have forcefully attached fbconnect.js file in l...
Pardeep Beniwal
1

votes
0

answer
35

Views

Allauth redirect to 'account/login/None' when i login/signup

When I create an account or log in with an existing one, Allauth redirects to 'account/login/None' or 'account/signup/None', but I am logged in and create the account successfully views: class LoginView(RedirectAuthenticatedUserMixin, AjaxCapableProcessFormViewMixin, FormView): form_class = LoginFor...
marcos souza
1

votes
0

answer
30

Views

How can I add Linkedin login to my website using Django allauth?

I am using frontend React Js and Backend Django. I need to setup login with LinkedIn and Facebook. So I am trying to achieve by using django allauth. I am new to Django so I am confusing the how to setup. Can I use allauth to achieve my requirements or what can be the best way to achieve and how?
0

votes
0

answer
4

Views

How to fix 'Social Network Login Failure' error of django-allauth deployed on Elastic Beanstalk

I'm using django-allauth plugin to provide Facebook login in my application. The login works perfectly on my machine (localhost:8000) but it gives me this error when I try to login in the online version, deployed on Elastic Beanstalk (AWS): Social Network Login Failure An error occurred while attemp...
Notorious Etam
1

votes
1

answer
878

Views

Django: ImportError allauth.twitter: No module named twitter

I installed allauth but when I run manage.py syncdb I am getting the following error django.core.exceptions.ImproperlyConfigured: ImportError allauth.twitter: No module named twitter Any ideas to fix this? Thanks in advance.
name
1

votes
1

answer
1.2k

Views

How do i generate a fresh access token from a stale token in django-allauth?

I have integrated allauth in my django project and users are able to log in via their facebook accounts. Now their tokens are available in the database but when i use them to get data of the users from facebook it results in an error that token has expired. So what i want to ask: Does/Can django-all...
Dhiraj Thakur
1

votes
1

answer
872

Views

AssertionError with custom user model django-allauth

I'm new to django, recently i decide to integrate django allauth for using login with (facebook and google+), i work with a custom model (django 1.5), and a one to one userprofile model, my custom model class looks class MyUser(AbstractBaseUser): email = models.EmailField( verbose_name='email add...
fathallah houssem
1

votes
1

answer
1.1k

Views

django-allauth callback url for github?

The django-allauth readme contains specific info on how to set up authentication using several providers, but not Github. I would assume based on the general pattern given that the correct callback url for github is http://example.com/accounts/github/login/callback/ However, github won't let me sig...
foobarbecue
1

votes
2

answer
440

Views

Override Django allauth template with extra form

I want to override the allauth email confirm page with my own. I managed to render my own template by creating a file called email_confirm.html in templates/account/. It works fine but I want another form there. I found a post to override view from another app: How to override a view from an exte...
1

votes
2

answer
839

Views

Passing context value to profile signup template in django-allauth

With django-allauth, I am forcing a new user to fill out additional profile information on signup using a custom ACCOUNT_SIGNUP_FORM. settings.py ACCOUNT_SIGNUP_FORM_CLASS = 'profiles.signup.ProfileSignupForm' SOCIALACCOUNT_AUTO_SIGNUP = False This ProfileSignupForm is then rendered in a modified a...
Jeff Miller
1

votes
2

answer
1.2k

Views

how to proceed after registering google are a service provider for allauth

I want to use the allauth django app. I did everything described in this allauth tutorial: http://www.sarahhagstrom.com/2013/09/the-missing-django-allauth-tutorial/. I continues until 'Now we can login using Django or Facebook' subpart. After that I can't go to the address that is indicated in the...
Jenia Ivanov
1

votes
1

answer
107

Views

Django-allauth: myappdomain.com/accounts/login redirects to myappdomain.com

I'm following the tutorial here: http://www.sarahhagstrom.com/page/3/ I'm at the part where we go to myappdomain.com/accounts/login to see the login page, but for me the website is just redirecting back to the index page at myappdomain.com. Does anybody know what the issue might be? Thanks.
Daniel

View additional questions