File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
LucaDegasperi/OAuth2Server Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,17 @@ public function boot()
22
22
{
23
23
$ this ->package ('lucadegasperi/oauth2-server-laravel ' , 'lucadegasperi/oauth2-server-laravel ' );
24
24
25
- require __DIR__ .'/../../filters.php ' ;
25
+ /** @var \Illuminate\Routing\Router $router */
26
+ $ router = $ this ->app ['router ' ];
27
+
28
+ // Bind a filter to check if the auth code grant type params are provided
29
+ $ router ->filter ('check-authorization-params ' , 'LucaDegasperi\OAuth2Server\Filters\CheckAuthorizationParamsFilter ' );
30
+
31
+ // Bind a filter to make sure that an endpoint is accessible only by authorized members eventually with specific scopes
32
+ $ router ->filter ('oauth ' , 'LucaDegasperi\OAuth2Server\Filters\OAuthFilter ' );
33
+
34
+ // Bind a filter to make sure that an endpoint is accessible only by a specific owner
35
+ $ router ->filter ('oauth-owner ' , 'LucaDegasperi\OAuth2Server\Filters\OAuthOwnerFilter ' );
26
36
}
27
37
28
38
/**
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments