jeudi 21 janvier 2016

Laravel Middleware Auth for API

I am currently developing and application that has an API which I want to be accessible through middleware that will check if the user is authenticated using either Laravel's default Auth middleware and Tymone's JWT.Auth token based middleware so requests can be authenticated either of the ways.

I can work out how to have one or the other but not both, how could I do this? I'm thinking I need to create a custom middleware that uses these existing middlewares?

I am using Laravel 5.1

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire