Questions tagged [social-auth-app-django]

24 questions
8
votes
1 answer

social-auth-app-django: Refresh access_token

I use social-auth-app-django for my django website. Login all works, but after the token expires. I cant access the google's user data anymore. I found how to refresh the token, but it gives File…
Sharpless512
  • 3,062
  • 5
  • 35
  • 60
2
votes
0 answers

Django: AuthStateMissing at /oauth/complete/google-oauth2/

I am using social-auth-app-django for GoogleOauth2 authentication. It works fine for all users but in case of django admin it gives me following error: AuthStateMissing at /oauth/complete/google-oauth2/ Session value state missing. I have tried…
2
votes
1 answer

No module named 'social_django' but 'social-auth-app-django' is installed

Summary of Issue I am creating a Django project and attempting to setup Auth0 integrations. Per Auth0's documentation, I installed the social-auth-app-django library which then went and also installed social-auth-core. So please note that both these…
2
votes
3 answers

Django: no migrations apply, but I have unapplied migrations

I deleted my database and tried to create a new one. I did: python manage.py makemigrations python manage.py migrate Then I ran python manage.py runserver and it returned You have 2 unapplied migration(s). Your project may not work properly until…
BM835
  • 58
  • 2
  • 8
2
votes
0 answers

How can I disconnect social auth from django with social-auth-app-django library using rest API

I am using two social auth libraries in django framework social-auth-app-django and graphql-social-auth. I have successfully implemented the login functionality using these libraries but now I want to introduce a feature in my app to disconnect…
1
vote
0 answers

social-auth-app-django problem with DjangoStrategy

After installing social-auth-core social-auth-app-django on Django 4.0.6 and including to the INSTALLED_APPS and made everything on documents I got this error 'DjangoStrategy' object has no attribute 'get_backend' This error happens when I click…
zdimon77
  • 131
  • 10
1
vote
2 answers

social-auth-app-django: how to disconnect a user without password

On my site (www.raptors.ru) I'm using social-auth-app-django to authorize users from Facebook. To make their logging in easier I made following setting: ACCOUNT_PASSWORD_INPUT_RENDER_VALUE = True so that users do not need to enter their password.…
1
vote
1 answer

How to get data from config file (config.json) in real time in settings.py file in django

I have a project made in Django. I have only added social auth for login purposes. I want selected emails only to log in to the website. I used social-auth-app-django library for social auth and added a variable…
Meet Gondaliya
  • 387
  • 4
  • 18
1
vote
1 answer

AuthCanceled at /oauth/complete/facebook/

Request Method: GET Request URL:…
0
votes
0 answers

Reset password for user who registered with Social Auth (Google) [Django, Djoser, Social Auth]

I am trying to using custom model with Djoser JWT endpoint but I want to reset the password for those user who register with Google OAuth. When I am using the API endpoint the password reset mail is not getting send to mail. @action(["post"],…
0
votes
1 answer

For looping in Django not worked

Hi I am newbie in django, I have problem with for looping in django, to make a navbar/menu, this is the detail code: base.html: {% load static %}
0
votes
0 answers

How can I use only my custom models with social-auth-app-django?

How can I store people logged in or registered with social authentication only in the custom user model? By default, whenever I use social auths, they are registered in User social auths in PYTHON SOCIAL AUTH on the Admin page, but I would like to…
0
votes
0 answers

How to know if a user is logged in via Oauth

I added authorization through social networks to my site. How can I find out that the user used exactly this authorization? In the process of authorizing a user through a social network, I need to change the verified value in the database table, as…
Egor
  • 1
0
votes
0 answers

How to whitelist only specific domain in Google OAuth2

I was making a registration portal using in Django 4 using Google OAuth2 and need to register people only with a specific domain like abc@akgec.ac.in but I'm not able to figure out how to do it. I'm using social-auth-app-django for setting up…
0
votes
0 answers

Django social-auth-app-django cannot login & show Authentication process canceled

There is a problem when I upload my django application to the hosting. That is, when I logged in using Google OAuth after selecting a Google account, an error suddenly appeared AuthCanceled at /auth/complete/google-oauth2/. But, I didn't do anything…
1
2