Skip to content

Commit

Permalink
[8.x] Don't recommend legacy Passport grants anymore (laravel#7625)
Browse files Browse the repository at this point in the history
* Update passport.md

* Update passport.md

* Update passport.md

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
driesvints and taylorotwell authored Jan 25, 2022
1 parent 4d3b007 commit bc890b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions passport.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ If the state parameter matches, the consumer should issue a `POST` request to yo
<a name="password-grant-tokens"></a>
## Password Grant Tokens

> {note} We no longer recommend using password grant tokens. Instead, you should choose [a grant type that is currently recommended by OAuth2 Server](https://oauth2.thephpleague.com/authorization-server/which-grant/).
The OAuth2 password grant allows your other first-party clients, such as a mobile application, to obtain an access token using an email address / username and password. This allows you to issue access tokens securely to your first-party clients without requiring your users to go through the entire OAuth2 authorization code redirect flow.

<a name="creating-a-password-grant-client"></a>
Expand Down Expand Up @@ -745,6 +747,8 @@ When authenticating using the password grant, Passport will use the `password` a
<a name="implicit-grant-tokens"></a>
## Implicit Grant Tokens

> {note} We no longer recommend using implicit grant tokens. Instead, you should choose [a grant type that is currently recommended by OAuth2 Server](https://oauth2.thephpleague.com/authorization-server/which-grant/).
The implicit grant is similar to the authorization code grant; however, the token is returned to the client without exchanging an authorization code. This grant is most commonly used for JavaScript or mobile applications where the client credentials can't be securely stored. To enable the grant, call the `enableImplicitGrant` method in the `boot` method of your application's `App\Providers\AuthServiceProvider` class:

/**
Expand Down

0 comments on commit bc890b3

Please sign in to comment.