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] Disable PAT requests #1766

Merged
merged 9 commits into from
Jul 4, 2024

Conversation

hafezdivandari
Copy link
Contributor

In addition to OAuth2 grants, we are enabling "Personal Access Token" grant on Passport. This implicitly causes POST /oauth/token to respond to access token requests with 'grant_type' => 'personal_access', which is totally unwanted, insecure and not documented.

This change doesn't effect issuing PAT via $user->createToken() method.

@hafezdivandari hafezdivandari changed the title [13.x] Disable PAT request [13.x] Disable PAT requests Jul 4, 2024
@taylorotwell taylorotwell merged commit 5ab8904 into laravel:13.x Jul 4, 2024
7 checks passed
@hafezdivandari hafezdivandari deleted the 13.x-disable-pat-request branch July 4, 2024 14:19
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.

None yet

2 participants