-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Ok, so I'm probably missing something, but I figured I might as well ask before I spent too much more time on this.
Here's my routes file.
Route::api( ['version' => 'v1', 'namespace' => 'Api\Controllers', 'protected' => true], function ()
{
// Route Patterns (All ids must be integers, etc...)
Route::pattern('id', '[0-9]+');
// Articles
Route::group( ['scopes' => 'articles.read'], function ()
{
Route::get( '/articles', 'ArticlesController@index' );
Route::get( '/articles/{id}', 'ArticlesController@show' );
Route::get( '/articles/{slug}', 'ArticlesController@showBySlug' );
} );
} );
So I have a very basic route setup here to be protected and tied to the articles.read scope.
I logged in and created an access token with this scope, and then I pass it to the route via an Authorization header in Postman. Doesn't work.
However, if I pass it as POST data with "access_token" it's working and it properly authenticates the request.
Is there something I'm doing incorrectly?
Metadata
Metadata
Assignees
Labels
No labels
