PHPackages                             garbetjie/laravel-auth-passport-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. garbetjie/laravel-auth-passport-client

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

garbetjie/laravel-auth-passport-client
======================================

Laravel Passport guard that fetches the authenticated OAuth client like a user.

1.0.0(6y ago)12211MITPHPCI failing

Since Mar 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/garbetjie/laravel-auth-passport-client)[ Packagist](https://packagist.org/packages/garbetjie/laravel-auth-passport-client)[ RSS](/packages/garbetjie-laravel-auth-passport-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Auth Passport Client Guard
==================================

[](#laravel-auth-passport-client-guard)

A really small and simple [auth guard](https://laravel.com/docs/6.x/authentication#introduction) for [Laravel Passport](https://laravel.com/docs/6.x/passport) that treats the OAuth client just like a user.

When an OAuth client has authenticated using the `client_credentials` grant type, this package will allow you to access the authenticated client through the `request()->user()` method call.

Configuration
=============

[](#configuration)

Configuration of this is really simple. Simply use the `passport-client` auth guard in `config/auth.php`:

```
