| 1 | <?php |
||
| 11 | class Passport extends Authorization |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Illuminate authentication manager. |
||
| 15 | * |
||
| 16 | * @var \Illuminate\Contracts\Auth\Guard |
||
| 17 | */ |
||
| 18 | protected $auth; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The guard driver name. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $guard = 'api'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Create a new basic provider instance. |
||
| 29 | * |
||
| 30 | * @param \Illuminate\Auth\AuthManager $auth |
||
| 31 | */ |
||
| 32 | public function __construct(AuthManager $auth) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Authenticate request with a Illuminate Guard. |
||
| 39 | * |
||
| 40 | * @param \Illuminate\Http\Request $request |
||
| 41 | * @param \Dingo\Api\Routing\Route $route |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function authenticate(Request $request, Route $route) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the providers authorization method. |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getAuthorizationMethod() |
||
| 63 | } |
||
| 64 |