diff options
author | Camil Staps | 2015-02-21 21:42:43 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-21 21:42:43 +0100 |
commit | b7d7f5b90e373329e8b5b9a8aa5f6879834f076e (patch) | |
tree | adf8b5575e3e3b1bf7b864042b1e94420297bc24 /src/CamilStaps/BotleaguesApi/AuthProvider.php | |
parent | Basic controllers and authentication (diff) |
trying to get auth work
Diffstat (limited to 'src/CamilStaps/BotleaguesApi/AuthProvider.php')
-rw-r--r-- | src/CamilStaps/BotleaguesApi/AuthProvider.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/CamilStaps/BotleaguesApi/AuthProvider.php b/src/CamilStaps/BotleaguesApi/AuthProvider.php new file mode 100644 index 0000000..6cf152d --- /dev/null +++ b/src/CamilStaps/BotleaguesApi/AuthProvider.php @@ -0,0 +1,18 @@ +<?php +namespace CamilStaps\BotleaguesApi; + +use Illuminate\Http\Request; +use Dingo\Api\Routing\Route; +use Dingo\Api\Auth\ProviderInterface; +use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; + +class AuthProvider implements ProviderInterface { + + public function authenticate(Request $request, Route $route) { + var_dump($request, $route): + die('hello'); + } + +} + + die('hello');
\ No newline at end of file |