File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,25 @@ __Note__: To prevent token scanning attacks, the endpoint MUST also require some
1111
1212# Installation
1313
14- Register the service provider ` \ArieTimmerman\Laravel\Oauth2\ServiceProvider::class ` in ` config/app.php ` .
15-
16- In ` App/Http/Kernel.php ` , add ` \ArieTimmerman\Laravel\OAuth2\VerifyAccessToken::class ` as middleware. This should look like the following.
17-
18- ~~~ .php
19- protected $routeMiddleware = [
20-
21- // ...
22-
23- 'verifyaccesstoken' => \ArieTimmerman\Laravel\OAuth2\VerifyAccessToken::class,
24-
25- // ...
26-
27- ];
28- ~~~
29-
30- In your ` .env ` file, define the following properties
14+ Install the package on your resource server
15+
16+ ~~~
17+ composer require arietimmerman/laravel-oauth-introspect-middleware
18+ ~~~
19+
20+ and add the Service Provider in your ` config/app.php `
21+
22+ ~~~
23+ \ArieTimmerman\Laravel\Oauth2\ServiceProvider::class
24+ ~~~
25+
26+ and add the MiddleWare in your ` App/Http/Kernel.php `
27+
28+ ~~~
29+ \ArieTimmerman\Laravel\OAuth2\VerifyAccessToken::class
30+ ~~~
31+
32+ Finally in your ` .env ` file, define the following properties
3133
3234~~~ .properties
3335# Url of the authorization server
You can’t perform that action at this time.
0 commit comments