Skip to content

Commit a3e80e5

Browse files
author
Luca Degasperi
committed
Fixed typo in filter syntax
1 parent b6dcdee commit a3e80e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ Route::get('secure-route', array('before' => 'oauth', function(){
7070
Additionaly you can provide the allowed scopes to the ```oauth``` before filter by passing them in the filter name.
7171

7272
```php
73-
Route::get('secure-route', array('before' => 'oauth|scope1,scope2', function(){
73+
Route::get('secure-route', array('before' => 'oauth:scope1,scope2', function(){
7474
return "oauth secured route";
7575
}));
7676
```
7777

7878
An interesting addition is the possibility to limit an endpoint to a specific owner type when using the client credentials grant type. It can be achieved by adding the ```oauth-owner``` before filter to your route.
7979

8080
```php
81-
Route::get('secure-route', array('before' => array('oauth|scope1,scope2', 'oauth-owner|client'), function(){
81+
Route::get('secure-route', array('before' => 'oauth:scope1,scope2|oauth-owner:client, function(){
8282
return "oauth secured route for clients only";
8383
}));
8484
```

0 commit comments

Comments
 (0)