Reputation: 16782
So I want to have authentication via HTTP Basic Auth --and-- authentication which accepts a username / password via HTML. I also want the username / password combo to be different for each one. To that end I figured I'd use the following pre-built middleware:
My question is... can I use both regular authentication authentication and HTTP Basic authentication at the same time whilst having a different username / password combo for both?
Upvotes: 0
Views: 763
Reputation: 16782
https://medium.com/oceanize-geeks/laravel-middleware-basic-auth-implementation-88b777361b5c pointed me in the necessary direction. Basically, per that tutorial, Illuminate/Auth/Middleware/AuthenticateWithBasicAuth was not used. A new from-scratch middleware was created and then added to app/Http/Kernel.php
Upvotes: 0
Reputation: 1345
Your question may be solved using multiauth and Laravel Passport, see here for more info:
how to implement multiauth in laravel passport
Upvotes: 1