mardi 19 avril 2016

laravel5.1 basic http auth for API

I'm working on a web based API. For this I don't need the overloaded feature of laravel to use a table for storing the login details of the http auth. I just would like to protect one function (so middleware would be overloaded too) by using a hardcoded username & password for HTTP auth.

All I found at the moment doesn't work, isn't there a simple code example how to do so? All I found in tutorials is using the users table, but for my API this would be overloaded, since I only need one account which I would like to hardcode into the controller.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire