python-social-auth

python-social-auth and facebook login: what is the whitelist redirect url to include in fb configuration?

自作多情 提交于 2020-01-25 16:35:27
问题 I was getting this facebook login error: URL Blocked This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs. Facebook login requires whitelisting of the call-back url. what is the call back url for django-social-auth or python-social-auth ? 回答1: include a url to your website that is the absolute url version of this relative url: /complete/facebook

python-social-auth and facebook login: what is the whitelist redirect url to include in fb configuration?

白昼怎懂夜的黑 提交于 2020-01-25 16:34:11
问题 I was getting this facebook login error: URL Blocked This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs. Facebook login requires whitelisting of the call-back url. what is the call back url for django-social-auth or python-social-auth ? 回答1: include a url to your website that is the absolute url version of this relative url: /complete/facebook

Python Social Auth Django template example

那年仲夏 提交于 2019-12-31 08:52:28
问题 Does someone has an open example using Python Social Auth with Django in templates? I took a look in their Github repo, and in the django exmaple, there is nothing about how to deal with it in templates (e.g. doing login, logout, etc). 回答1: Let’s say you followed Python Social Auth configuration guidelines at http://psa.matiasaguirre.net/docs/configuration/django.html and you want using facebook login. Your backend settings in settings.py should look: AUTHENTICATION_BACKENDS = ( 'social

Python Social Auth Django template example

孤街醉人 提交于 2019-12-31 08:52:26
问题 Does someone has an open example using Python Social Auth with Django in templates? I took a look in their Github repo, and in the django exmaple, there is nothing about how to deal with it in templates (e.g. doing login, logout, etc). 回答1: Let’s say you followed Python Social Auth configuration guidelines at http://psa.matiasaguirre.net/docs/configuration/django.html and you want using facebook login. Your backend settings in settings.py should look: AUTHENTICATION_BACKENDS = ( 'social

How to retrieve Facebook friend's information with Python-Social-auth and Django

爷,独闯天下 提交于 2019-12-29 23:59:25
问题 How can I retrieve Facebook friend's information using Python-Social-auth and Django? I already retrieve a profile information and authenticate the user, but I want to get more information about their friends and invite them to my app. Thanks! 回答1: You can do it using Facebook API. Firstly, you need obtain the token of your Facebook application ( FACEBOOK_APP_ACCESS_TOKEN ) https://developers.facebook.com/tools/accesstoken/ or from social_user.extra_data['access_token'] Then with this token

Users are not created after login with facebook (probably an homonymy case)

落花浮王杯 提交于 2019-12-24 11:23:19
问题 I am trying to learn how to integrate python social auth into a django project. It seems to work, because I can log into my test application, but it seams that the user is never stored to the db and I can't understand why, since I don't get any error. Here's my conf INSTALLED_APPS = ( ... 'social.apps.django_app.default', 'messaging' ) AUTHENTICATION_BACKENDS = ( 'social.backends.facebook.FacebookOAuth2', 'social.backends.email.EmailAuth', 'django.contrib.auth.backends.ModelBackend', ) SOCIAL

Django/ python-social-auth: LinkedIn extra data returns null on some fields

泪湿孤枕 提交于 2019-12-24 02:08:38
问题 I am using python-social-auth to retrieve LinkedIn profile data in Django. <a href="{% url 'social:begin' 'linkedin-oauth2' %}?next={{ request.path }}">Login with LinkedIn</a> is the link to login with LinkedIn. SOCIAL_AUTH_LINKEDIN_OAUTH2_EXTRA_DATA = [('id', 'id'), ('firstName', 'first_name'), ('lastName', 'last_name'), ('email-address', 'email_address'), ('positions', 'positions'), ('summary', 'summary'), ('headline', 'headline'), ('picture-url', 'picture_url'), ('site-standard-profile

how can we integrate any SSO provider using python social auth openid connect?

泄露秘密 提交于 2019-12-23 18:08:58
问题 In my project, the customer can configure own SSO service via admin panel. can I create a genetic code? like this. Here I am using python social auth open_id module. python social auth created an example only for google OpenID connect i am following the same but I am not sure it will be work for all or not. Can I use the below code for multiple SSO provider? like for google, okta, gluu, oracle etc.. """ This file contains Django authentication backends. For more information visit https://docs

Python social-auth-app-django 'social' is not a registered namespace

北战南征 提交于 2019-12-23 05:45:13
问题 I'm working on a project with Python(3.6) and Django(2.0) in which I'm trying to integrate social login by using social-auth-app-django package. Managing users in the users app. Here's my configurations: From settings.py: INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'users', 'phone_field', 'social_django', ] MIDDLEWARE = [ 'django.middleware.security