Skip to content

Conversation

@nijel
Copy link
Member

@nijel nijel commented May 21, 2025

When cookies are created with SameSite policy, they won't be available during the authentication flow which uses POST such as OpenID or SAML. This adds support in Strategy to get session ID and restore it later in the login flow.

See python-social-auth/social-app-django#481

@nijel nijel requested a review from a team May 21, 2025 09:31
nijel added a commit to nijel/social-app-django that referenced this pull request May 21, 2025
@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 53.33333% with 14 lines in your changes missing coverage. Please review.

Project coverage is 77.85%. Comparing base (3ebf167) to head (010f025).
Report is 20 commits behind head on master.

Files with missing lines Patch % Lines
social_core/backends/open_id.py 37.50% 4 Missing and 1 partial ⚠️
social_core/backends/saml.py 20.00% 2 Missing and 2 partials ⚠️
social_core/exceptions.py 50.00% 4 Missing ⚠️
social_core/strategy.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1159      +/-   ##
==========================================
- Coverage   77.87%   77.85%   -0.03%     
==========================================
  Files         353      353              
  Lines       10794    10832      +38     
  Branches      471      476       +5     
==========================================
+ Hits         8406     8433      +27     
- Misses       2222     2230       +8     
- Partials      166      169       +3     
Flag Coverage Δ
unittests 77.85% <53.33%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

When cookies are created with SameSite policy, they won't be available
during the authentication flow which uses POST such as OpenID or SAML.
This adds support in Strategy to get session ID and restore it later in
the login flow.

See python-social-auth/social-app-django#481
@nijel nijel force-pushed the session-saving branch from 7ecc97a to 010f025 Compare May 21, 2025 12:27
nijel added a commit to nijel/social-app-django that referenced this pull request May 21, 2025
@nijel nijel merged commit d9b4c1c into python-social-auth:master May 26, 2025
10 of 12 checks passed
@nijel nijel deleted the session-saving branch May 26, 2025 11:41
nijel added a commit to python-social-auth/social-app-django that referenced this pull request May 26, 2025
This is a Django implementation for changes introduced in
python-social-auth/social-core#1159.

Fixes #481
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant