Skip to content

Commit 81dd8ad

Browse files
Arie TimmermanArie Timmerman
authored andcommitted
updated docs
1 parent bf4c3a8 commit 81dd8ad

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)