Skip to content

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
@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.

2 participants