Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.x] Always validate auth token #1769

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

hafezdivandari
Copy link
Contributor

@hafezdivandari hafezdivandari commented Jul 5, 2024

The auth_token was validated only if present on the request, this PR does:

  • Make sure the auth_token is present and filled.
  • Merges assertValidAuthToken() method into getAuthRequestFromSession() method, we always validating the auth request from session before retrieving.
  • Pull the values from session (get and forget at the same time) to not be misused on the future requests.

@taylorotwell taylorotwell merged commit 0ee1d8b into laravel:13.x Jul 5, 2024
9 checks passed
@hafezdivandari hafezdivandari deleted the 13-x-fix-auth-request branch July 5, 2024 17:28
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.

2 participants