Monday, March 13, 2017

Laravel 5.4 Passport restrict the use of a Personal Access Token on a specific route

So i have an API that i have been developing and some of the routes obviously need a user instance in order for me to fully complete the request on the server side.

What i am wondering is, is there a way to restrict certain routes in laravel so that it would require a full oauth token instead of just a personal access token. The only way at the moment i can see to filter this out is by adding Token Scopes. However I rather avoid adding scopes just to filter out the use of a Personal Access Token vs a client....

Thoughts...

Thanks

Citti



via Citti

Advertisement