social-core | Python Social Auth - Core | Authentication library
kandi X-RAY | social-core Summary
kandi X-RAY | social-core Summary
This is the core component of the python-social-auth ecosystem, it implements the common interface to define new authentication backends to third parties services, implement integrations with web frameworks and storage solutions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Do a complete session .
- Update user details .
- Decorator to store partial tokens .
- Resume data from a pipeline .
- Validate id token .
- Generate SAML configuration .
- Calculate the expiration time in seconds .
- Disconnect session .
- Associate an account with the given email address .
- Return SAML configuration .
social-core Key Features
social-core Examples and Code Snippets
Community Discussions
Trending Discussions on social-core
QUESTION
In a personal project, I am trying to use Django as my front end and then allow data entered by users in a particular form to be copied to google sheets.
Google's own docs recommend using https://github.com/google/oauth2client which is now deprecated, and the docs have not been updated. With this, I have started attempting to use Python Social Auth and Gspread. For Gspread to be able to function correctly, I need to be able to pass it not only an access token but also a refresh token. Python Social Auth however is not persisting the refresh token along with the rest of the "extra data". Looking at the data preserved and the URLs routed to, it seems to me more like somewhere it is routing through Google+.
I have the following configurations in my Django settings files:
...ANSWER
Answered 2018-Feb-09 at 12:30It's true that python-social-auth
will use some bits of the Google+ platform, at least the API to retrieve details about the user to fill in the account.
From your settings, I see you have associate_by_email
at the bottom, at that point, at that point it has no use since the user is already be created, if you really plan to use it, it must be before the create_user
one, you can check the DEFAULT_PIPELINE
as a reference.
In order to get a refresh_token
from google, you need to tell it that you want one, to do that you need to set the offline
access type:
QUESTION
On gitlab, my request crashed and i got this error:
...ANSWER
Answered 2018-Nov-06 at 08:37I don't know if you're aware, but docker images change from time to time (details here https://hub.docker.com/r/library/maven/tags/). In your pom I can't see where is your surefire plugin specification but most likely you need to update the configuration
QUESTION
When I run my project in IntelliJ it works fine, server starts etc. but when I build my project (with maven) and I want to execute the .jar file I get those errors:
...ANSWER
Answered 2017-Sep-27 at 13:39As JB Nizet pointed out, the problem is with the FacebookConnectionFactory not being supplied.
Directory JARs can be added into the packaging. However, you should consider installing the dependency into local Maven repository and supplying it to the project from there instead of passing it in a directory.
QUESTION
I'm trying to use Spring social to connect to facebook. This is the error that I am getting:
...ANSWER
Answered 2019-Oct-02 at 16:38It seems in Spring Boot 2, they removed the FacebookAutoConfiguration configurer from spring-boot-autoconfigure dependency, so if you want to enable this (and make spring setup the necessary beans) you have to define a SocialConfigurer:
QUESTION
I have a project currently deployed, in production, which uses the google+ API and the python social core (Django) (social_core) to login almost all users, now the google+ apis are deprecated and I need to update the authentication system. Any tip, documentation or tutorial I can follow to make it? I followed this tutorial to make the initial login but now that won't work in the near future. This is a school project so I'm pretty much the only developer working with this, any help provided will be much appreciated :D
...ANSWER
Answered 2019-Jan-19 at 19:44This Google document shows you how to migrate from Google+ to Google Sign-In. This is a step by step fairly detailed document on how to complete the conversion for the Google libraries part.
The important items to change on your backend:
- Use the new Google OAuth 2.0 (OpenID Connect) endpoints. Use the Discovery Document
- Replace the deprecated Google+ scopes.
- Replace the Django OAuth Flows: Using Django OAuth Flows
QUESTION
In my Spring Boot 2.0.0.M6 application, I have installed LiquiGraph by using the following Maven dependencies:
...ANSWER
Answered 2019-Jan-04 at 05:52tl;dr;
Add management.health.db.enabled=false
to your config.
Details
Because you are also registering a JDBC DataSource in your config to work with liquigraph, the auto configuration of SpringBoot kicks in and registers an additional HealthIndicator
for this db. You can deactivate this indicator by setting management.health.db.enabled=false
.
Just some more information for you if you plan to upgrade to SpringBoot 2.0.0.M7: The configuration for health check has changed to:
QUESTION
I know my question sounds like a duplicate, but I've looked everywhere without finding any solution.
I am working on implementing social logins for my django webapp. So far google, twitter and yahoo logins have worked as expected. But facebook always gives the error below:
URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.
After some digging I got to learn how to setup my facebook login properly: Facebook app settings below
App Domains
set to domain.ext
Site URL
set to https://www.domain.ext/
Valid OAuth Redirect URIs
set to https://domain.ext/social/complete/facebook/
I also looked at the redirect url (shown below) and found that it contains a state
variable, state=kMQH3TdKSdF8oYGGx7Xri4KgFaEQ9OyU
. Full url below
https://www.facebook.com/v2.9/dialog/oauth?client_id=977674249054153&redirect_uri=https%3A%2F%2Fwww.domain.ext%2Fsocial%2Fcomplete%2Ffacebook%2F&state=kMQH3TdKSdF8oYGGx7Xri4KgFaEQ9OyU&return_scopes=true&scope=email%2Cpublic_profile
My facebook login url on my django app is {% url 'social:begin' 'facebook' %}
and I have this 'social_core.backends.facebook.FacebookOAuth2'
in AUTHENTICATION_BACKENDS
I searched and found there's such issue already on the social-core
github page which has been resolved. It says that from v1.7.0, this line REDIRECT_STATE = False
has been added to the facebook backend. I dug into the sourcecode and found that to be the case. But my app's url keep sending the state variable and I have no idea why that is the case. Please has someone else encountered this odd behaviour, and if yes how did you go about working it out?
ANSWER
Answered 2018-May-16 at 05:58Have you tried django-allauth? I find it to be a much better solution. It takes care of third party provider integration for you with builtin support for many providers and custom providers.
QUESTION
I have a application built with spring boot and google app engine. I've tried implementing sever sent events by following this https://golb.hplar.ch/p/Server-Sent-Events-with-Spring tutorial. When I build and try to access the endpoint that creates the sse-emitter I get the following error
...ANSWER
Answered 2017-Nov-15 at 12:10Annotate your BootApplication with @EnableAsync
QUESTION
I have an issue with getting parameters others than id
and name
using spring-social
.
Dependencies:
...ANSWER
Answered 2017-Feb-16 at 12:07changes in facebook api might have caused this. Try the code below:
QUESTION
I'm ported my application to Spring Boot 1.5.1
and unable to start it with a Standalone Tomcat 8.5.2
with a following error:
ANSWER
Answered 2017-Feb-03 at 12:46May be class mixup of different versions and precedence of jar could be the reason.
Embedded Tomcat version: 8.5.11
Standalone Tomcat version: 8.5.2
Try removing the embedded tomcat jars from the project while running in a standalone container.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install social-core
You can use social-core like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page