Repository navigation
chore(deps): update dependency social-auth-core to v6 - #546
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==5.2.0→==6.0.0Release Notes
python-social-auth/social-core (social-auth-core)
v6.0.0Compare Source
Security
SOCIAL_AUTH_<BACKEND>_NONCE_LIFETIMEto change the duration. Storageintegrations must persist
issuedandlifetime; stored nonces withouta valid lifetime are rejected.
Malformed signatures, including non-ASCII Discourse signatures, raise
authentication errors instead of type errors.
pipeline resume, preventing forged resumes from authenticating a previous user.
not explicitly confirm email verification. Google One Tap requires the same
confirmation in its ID token.
SOCIAL_AUTH_EMAIL_VALIDATION_EXPIRED_THRESHOLDto change their lifetime.Storage integrations must persist each code's creation
timestamp; undatedcodes are rejected when expiry is enabled.
Fence, CAS, Cognito, Dailymotion, Mail.ru, ArcGIS, Ubuntu, openSUSE, Yandex,
and affected Microsoft Entra ID backends now bind accounts to stable provider
or protocol identifiers. Existing associations record their identifier key
and migrate on authentication; strict deployments can disable unverified
legacy-identifier migration with
SOCIAL_AUTH_<BACKEND>_ALLOW_UNVERIFIED_LEGACY_UID_MIGRATION.same authenticated local user at initiation, callback, and partial resumption.
Mutable provider identifiers can no longer create or authenticate local users,
and connecting preserves local profile fields.
Breaking
pipelines must add
social_core.pipeline.social_auth.social_namesimmediatelyafter
social_core.pipeline.social_auth.social_detailsto retain automaticconversion between full names and first/last names.
id_keyvalues, acceptid_keyin
get_social_auth()andcreate_social_auth(), and implementget_social_auth_by_extra_data()and atomicmigrate_social_auth().Existing associations use an empty identifier key until migration.
AuthCredentialErrorwithreauthentication_requiredwhen a stored access token is expired and no renewal credential is available.
Custom backends that exchange access tokens must override
get_refresh_token().Enable group extraction and update custom pipeline consumers to use
groupsinstead of
details["groups"]. MediaWiki identity retrieval now runs inuser_data()rather thanget_user_details().operation stages, and suggested recovery. Only
SocialAuthBaseExceptionandAuthExceptionretain broad catch compatibility; migrate removed specializedclasses using the exception reference in social-docs.
HTTP 401. Provider diagnostics are separate from safe exception messages.
get_request_data()instead of overridingrequest_data(). The latter now returns effective data for the active partialpipeline, including confirmed external-link data.
requestargument. Usestrategy.request_data()for parameters and the framework strategy'srequestattribute for its native request object.flow. Legacy authentication partials remain resumable.
Added
Keycloak, Okta OAuth2, SAML, GitLab, MediaWiki, and Discourse, with a strategy
hook and optional pipeline step for local group synchronization. Existing CAS
allow lists continue to work without pipeline changes.
titleand optionaliconmetadata for authenticationbackends, with packaged icons shared with Django applications. Backend
identifiers remain unchanged; display labels follow current service branding.
vk-id) with mandatory S256 PKCE, payload callbacks,server-side profiles, and device-bound refresh tokens with automatic renewal.
AUTHORITY_URLand opt-in PKCE throughUSE_PKCE. Azure AD B2C exposes alogout_url()helper using policy discovery.BaseAuth.ASSOCIATION_ONLYcapability for user-bound connections,shared by Drip, Last.fm, Mixcloud, and Twilio Connect.
Existing partials with request data in their arguments remain readable.
life_science_eosc) with temporaryconfiguration for the EOSC federation.
SOCIAL_AUTH_<BACKEND>_FIRSTLAST_FROM_FULLandSOCIAL_AUTH_<BACKEND>_FULL_FROM_FIRSTLAST, both enabled by default.Changed
Deprecated
BaseAuth.get_user_names()is deprecated. Backends should returnprovider-supplied names from
get_user_details()and leave normalizationto the
social_namespipeline step.Fixed
rate_limited, includingresponses with HTTP 400 or 403, so callers receive retry guidance.
repeated resumes, including after the original ID token expires.
Facebook retains its access-token exchange, and Zoom and PayPal now store
refresh tokens by default. Existing accounts without a refresh token need
another provider login to obtain one.
a token references an unknown key ID or a token without a key ID fails
signature verification. Refreshes preserve other domains' cached keys and
retain existing keys if fetching or parsing replacements fails.
source distributions for downstream testing.
EXTRA_DATAentries when requestingprofile fields, and requests the supported
photo_50field while preservingthe legacy
photoanduser_photoresponse keys.OPENID_CONFIGURATION_URLoverrides.get_auth_token()uses stored refresh tokens and persists refreshedcredentials instead of sending an access token as a refresh token.
effective request data without replacing the native framework request.
encode mappings as strings or bytes.
saved step cannot skip disconnect permission checks.
resuming with a new backend instance, fixing login failures since 5.1.0.
parameters, and Apple preserves callback names across early pipeline pauses.
extension data instead of repeating callback verification on resume.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.