10000 [12.x] Passport 13.x by hafezdivandari · Pull Request #9819 · laravel/docs · GitHub
[go: up one dir, main page]

Skip to content

[12.x] Passport 13.x #9819

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.

Sign up for GitHub < 8000 /div>

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

Merged
merged 40 commits into from
May 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e2e5f88
passport 13.x
hafezdivandari Aug 14, 2024
d4fbeb9
wip
hafezdivandari Aug 14, 2024
97c30da
wip
hafezdivandari Aug 14, 2024
2b23e16
wip
hafezdivandari Aug 14, 2024
0228609
wip
hafezdivandari Aug 18, 2024
8772d98
wip
hafezdivandari Aug 19, 2024
560ce63
wip
hafezdivandari Aug 23, 2024
ac9439b
wip
hafezdivandari Aug 23, 2024
6fc2b04
wip
hafezdivandari Aug 23, 2024
3012b89
wip
hafezdivandari Aug 23, 2024
5f6bc2e
add device code grant
hafezdivandari Aug 24, 2024
7db7d78
wip
hafezdivandari Aug 24, 2024
98b0379
wip
hafezdivandari Aug 25, 2024
f3d7a97
fix a typo on code verifier
hafezdivandari Oct 4, 2024
af419bc
rename CheckClientCredentials middleware
hafezdivandari Oct 4, 2024
cd61de2
fix a typo
hafezdivandari Oct 5, 2024
a0d41b1
fix a typo
hafezdivandari Oct 5, 2024
133bdf6
new `EnsureClientIsResourceOwner` middleware
hafezdivandari Oct 9, 2024
39f5e63
wip
hafezdivandari Oct 10, 2024
56a2daf
formatting
hafezdivandari Nov 20, 2024
cebecd5
Merge branch '11.x' into 11.x-passport-13.x
hafezdivandari Nov 20, 2024
d5feabd
add axios link
hafezdivandari Nov 20, 2024
89d1838
wip
hafezdivandari Nov 30, 2024
5ec4eca
add sections for managing clients and tokens
hafezdivandari Feb 6, 2025
7814bd3
Merge branch 'master' into 11.x-passport-13.x
hafezdivandari Feb 19, 2025
0fefbe7
Merge branch '12.x' into 11.x-passport-13.x
hafezdivandari Mar 7, 2025
8660ed6
formatting
hafezdivandari Mar 7, 2025
8e87177
Merge branch '12.x' into 11.x-passport-13.x
hafezdivandari Mar 7, 2025
da18068
better scope examples
hafezdivandari Mar 9, 2025
6632967
better uri examples
hafezdivandari Mar 9, 2025
d0a51a3
formatting
hafezdivandari Mar 9, 2025
63cfd52
Merge branch '12.x' into 11.x-passport-13.x
hafezdivandari Mar 26, 2025
6931010
formatting
taylorotwell Apr 24, 2025
f5b80d7
add instructions for views
hafezdivandari Apr 25, 2025
137b5e0
formatting
taylorotwell Apr 25, 2025
fd18315
Merge branch '11.x-passport-13.x' of github.com:hafezdivandari/larave…
taylorotwell Apr 25, 2025
6f4e048
formatting
taylorotwell Apr 25, 2025
09274aa
add samples for rendering views with closure
hafezdivandari Apr 25, 2025
8484585
formatting
taylorotwell Apr 29, 2025
02fbdbf
formatting
taylorotwell Apr 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
hafezdivandari committed Aug 18, 2024
commit 022860979339f5142f8afcc06db0103549e4289c
22 changes: 12 additions & 10 deletions passport.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ When using the password grant or client credentials grant, you may wish to autho
<a name="customizing-the-user-provider"></a>
### Customizing the User Provider

If your application uses more than one [authentication user provider](/docs/{{version}}/authentication#introduction), you may specify which user provider the password grant client uses by providing a `--provider` option when creating the client via the `artisan passport:client --password` command. The given provider name should match a valid provider defined in your application's `config/auth.php` configuration file. You can then [protect your route using middleware](#via-middleware) to ensure that only users from the guard's specified provider are authorized.
If your application uses more than one [authentication user provider](/docs/{{version}}/authentication#introduction), you may specify which user provider the password grant client uses by providing a `--provider` option when creating the client via the `artisan passport:client --password` command. The given provider name should match a valid provider defined in your application's `config/auth.php` configuration file. You can then [protect your route using middleware](#multiple-authentication-guards) to ensure that only users from the guard's specified provider are authorized.

< 8000 /td> <a name="customizing-the-username-field"></a>
### Customizing the Username Field
Expand Down Expand Up @@ -770,7 +770,6 @@ PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET="unhashed-client-secret-value"
<a name="customizing-the-user-provider-for-pat"></a>
### Customizing the User Provider

If your application uses more than one [authentication user provider](/docs/{{version}}/authentication#introduction), you may specify which user provider the personal access grant client uses by providing a `--provider` option when creating the client via the `artisan passport:client --personal` command. The given provider name should match a valid provider defined in your application's `config/auth.php` configuration file. You can then [protect your route using middleware](#via-middleware) to ensure that only users from the guard's specified provider are authorized.

Finally, in your application's `config/passport.php` configuration file, you should set the client ID and secret for each user provider separately:

Expand All @@ -786,6 +785,7 @@ Finally, in your application's `config/passport.php` configuration file, you sho
]
],
```
If your application uses more than one [authentication user provider](/docs/{{version}}/authentication#introduction), you may specify which user provider the personal access grant client uses by providing a `--provider` option when creating the client via the `artisan passport:client --personal` command. The given provider name should match a valid provider defined in your application's `config/auth.php` configuration file. You can then [protect your route using middleware](#multiple-authentication-guards) to ensure that only users from the guard's specified provider are authorized.

<a name="managing-personal-access-tokens"></a>
### Managing Personal Access Tokens
Expand Down Expand Up @@ -825,14 +825,16 @@ Passport includes an [authentication guard](/docs/{{version}}/authentication#add

If your application authenticates different types of users that perhaps use entirely different Eloquent models, you will likely need to define a guard configuration for each user provider type in your application. This allows you to protect requests intended for specific user providers. For example, given the following guard configuration the `config/auth.php` configuration file:

'api' => [
'driver' => 'passport',
'provider' => 'users',
],

'api-customers' => [
'driver' => 'passport',
'provider' => 'customers',
'guards' => [
'api' => [
'driver' => 'passport',
'provider' => 'users',
],

'api-customers' => [
'driver' => 'passport',
'provider' => 'customers',
],
],

The following route will utilize the `api-customers` guard, which uses the `customers` user provider, to authenticate incoming requests:
Expand Down
0