Skip to content

fix(line): validate oauth state on callback#1829

Merged
nijel merged 1 commit into
python-social-auth:masterfrom
nijel:line
Jun 26, 2026
Merged

fix(line): validate oauth state on callback#1829
nijel merged 1 commit into
python-social-auth:masterfrom
nijel:line

Conversation

@nijel

@nijel nijel commented Jun 26, 2026

Copy link
Copy Markdown
Member

Validate the returned LINE OAuth state before exchanging authorization codes to prevent login CSRF. Add regression coverage for LINE state handling and redirect URI consistency.

Validate the returned LINE OAuth state before exchanging authorization codes to prevent login CSRF. Add regression coverage for LINE state handling and redirect URI consistency.
@nijel nijel self-assigned this Jun 26, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.88%. Comparing base (841e936) to head (4d96bdb).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1829      +/-   ##
==========================================
+ Coverage   85.54%   85.88%   +0.33%     
==========================================
  Files         345      346       +1     
  Lines       13052    13075      +23     
  Branches      627      627              
==========================================
+ Hits        11165    11229      +64     
+ Misses       1654     1612      -42     
- Partials      233      234       +1     
Flag Coverage Δ
unittests 85.88% <100.00%> (+0.33%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@thientd thientd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enforce CSRF state is good

@nijel nijel merged commit 5b3b90d into python-social-auth:master Jun 26, 2026
18 checks passed
@nijel nijel deleted the line branch June 26, 2026 06:02
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.

2 participants