Skip to content

Bugfix: Do not apply PreventRequestForgery on sso/acs route - #6

Merged
woodseowl merged 1 commit into
mainfrom
bugfix-sso-acs-middleware
Sep 11, 2026
Merged

woodseowl merged 1 commit into
mainfrom
bugfix-sso-acs-middleware

Conversation

@woodseowl

@woodseowl woodseowl commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5 — the /sso/acs route's withoutMiddleware([VerifyCsrfToken::class]) no longer excludes CSRF on Laravel 13, since VerifyCsrfToken is now just a deprecated subclass of PreventRequestForgery (the middleware actually registered in the web group). Adds PreventRequestForgery::class to the exclusion list.

Test plan

  • composer test passes
  • Verify SSO login completes without a 419 on Laravel 13

🤖 Generated with Claude Code

Closes #5

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused route change has no unresolved blocking issues.

Pull request overview

Updates the SSO ACS route to bypass Laravel 13 request-forgery middleware while retaining legacy compatibility.

Changes:

  • Excludes PreventRequestForgery from the ACS route.
  • Retains VerifyCsrfToken compatibility.
File summaries
File Summary
routes/cu-auth.php Excludes both current and legacy CSRF middleware from /sso/acs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@woodseowl
woodseowl merged commit 86d2b68 into main Sep 11, 2026
7 checks passed
@woodseowl
woodseowl deleted the bugfix-sso-acs-middleware branch September 11, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/sso/acs route's withoutMiddleware([VerifyCsrfToken::class]) no longer excludes CSRF on Laravel 13

2 participants