Questions tagged [python-social-auth]

Python Social Auth is an easy to setup social authentication/registration mechanism with support for several frameworks and auth providers.

From its website:

Python Social Auth

Python Social Auth is an easy to setup social authentication/registration mechanism with support for several frameworks and auth providers.

Crafted using base code from django-social-auth, implements a common interface to define new authentication providers from third parties. And to bring support for more frameworks and ORMs.

Authentication backends

Python Social Auth supports Google, Twitter, Facebook, GitHub, and many other services out of the box. It also has direct support for OAuth and OpenID. It is designed to be easily extensible.

Links

557 questions
0
votes
0 answers

Login and logout with python-social-auth

I used python-social-auth to implement login with Facebook and Twitter. Settings.py INSTALLED_APPS = ( ... 'social.apps.django_app.default', ...) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', …
Alfredhb.q
  • 75
  • 1
  • 9
0
votes
1 answer

Instagram social registration in Django

I succesfully managed to login and logout instagram users in my application, but i want to create a new django user on first login, like "Register with Instagram", storing user tokens etc. to use their photos and data in my app I'm totally new to…
Doc
  • 5,078
  • 6
  • 52
  • 88
0
votes
1 answer

Python Social Auth redirecting back to https from facebook login

Facebook login is redirecting back to https URL when it should be going back to http Correct URL: http://127.0.0.1:8000/social/complete/facebook/?redirect_state= After Facebook login, the URL being redirected to is…
Franco
  • 2,846
  • 7
  • 35
  • 54
0
votes
1 answer

python social auth UserSocialAuth is not json serializable

I am using python social auth for django social authentication. I have written a custom pipeline for sending email. Everything works fine just at the section of sending email it gives me UserSocialAuth is not json serializable error. Can anyone…
gamer
  • 5,673
  • 13
  • 58
  • 91
0
votes
1 answer

django python social auth send email

I am using python social auth for login. After user is created I want to send the user a email. For this I am writing a custom pipeline def send_confirmation_email(strategy, details, response, user=None, *args, **kwargs): if user: if…
varad
  • 7,309
  • 20
  • 60
  • 112
0
votes
1 answer

How to add and serialise additional fields of an existing model in Django

I'm using django-rest-framework and python-social-auth in my Django project. Here is the serializer class of UserSocialAuth model in my project class SocialAuthSerializer(serializers.HyperlinkedModelSerializer): id = serializers.CharField() …
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
0
votes
1 answer

python social auth and Django - is there a 1:1 relationship between OAuth users and Django users?

PSA with Django, works as expected except for an apparent, and worrisome change of users: During Twitter OAuth pipeline processing, our system at first reports the expected Twitter username/uid (matching "id" and "screen_name", cf. 38200000 below).…
B98
  • 1,229
  • 12
  • 20
0
votes
1 answer

Custom pipeline for Cordova social auth

I need two distinct login processes in my django server. Login for website users (I already have this) Login for app users - Cordova InAppBrowser The login pipeline for app users must also generate a token and return it to the Cordova app. How…
Ajoy
  • 1,838
  • 3
  • 30
  • 57
0
votes
1 answer

Facebook App settings to enable email once the user disables it

I am using python social auth. I have integrated sign in / sign up with facebook with my website.I have this problem with facebook app settings: If a user successfully signed in with facebook in my website and then [refer screen shot here :…
0
votes
0 answers

Porting from django-social-auth to python-social-auth: AuthCanceled exception

I created a social login on my project using django-social-auth. While porting to python-social-auth using instructions found on the documentation (http://psa.matiasaguirre.net/docs/configuration/porting_from_dsa.html) I've ran into a problem while…
Mærcos
  • 188
  • 14
0
votes
1 answer

Partial Pipeline to ask user's phone number

I am creating a partial pipeline to get user's phone number on signup and skip the step on subsequent logins. My partial pipeline looks like this: @partial def other_info(strategy, details, user=None, is_new=False, *args, **kwargs): if is_new or…
Maxsteel
  • 1,922
  • 4
  • 30
  • 55
0
votes
3 answers

Facebook login app error "Given URL is not allowed"

I'm trying to use python social auth with Django to add Facebook log in for my app. I have my App ID and secret in my settings file, yes yes. I'm just using the Django example for python social auth, uploaded at a subdomain. But I get the following…
herbalcell
  • 31
  • 5
0
votes
0 answers

DRF with python-social-auth, and OAuth token authentication

I'm relatively new to Django and OAuth, so forgive me if this is a silly question. I have an app which uses DRF and python-social-auth. Currently users can only authenticated with PSA, with Google OAuth 2.0 as the backend service. Up until now, I…
0
votes
1 answer

Adding Extra Permissions to Facebook Auth in Django

My existing app uses Python Social Auth to allow account creation via Facebook, in addition to creating a custom account. I now want to add the ability to collect the user's email address by adding SOCIAL_AUTH_FACEBOOK_SCOPE = ['email'] to my…
steph
  • 701
  • 2
  • 10
  • 30
0
votes
2 answers

Django Python Social Auth, Authentication Canceled by Facebook app

I am trying to implement website login using Facebook credentials. I see different responses when I press Cancel on Facebook widget or Okay. When I press Cancel I see the following Environment: Request Method: GET Request URL:…
Artem
  • 21
  • 1
  • 4