Open mansouralex opened 8 years ago
I think we can because Passport use api guard with Passport driver instead of default api driver. There is no conflict but you have to try it yourself. When you try write it in this topic please.
@Hesto just tried it and I'm getting invalid_credentials error response when trying the api guard with the new created provider but It works ok when using the users provider.
Any tips you suggest for this issue?
Also, How we can define multiple api guards in auth.guards array?
Thanks.
I will test the package with Passport soon.
Passport package isn't built with Multi-Auth in mind, how can we use it for our purpose ?
@mansouralex multiple guards are not enabled for the reason is inside Laravel\Passport\Bridge\UserRepository getUserEntityByUserCredentials() function 'auth.providers.users.model' is hardcoded, so there is no way to escape using it.
i am using laravel voyager the new admin panel, and my way around it is to change the default guard.
default new guard for voyager (admin panel) usual guards (web, api) for passports (apis)
@samirgit thanks for your reply. Yes I noticed that, for the moment we can use JWT for this purpose.
hey guys, anyone tested this package for working together with passport.
thanks.
Hi all, see this. It worked for me.
Hello, I have created a small package for this: https://github.com/jsdecena/laravel-passport-mutiauth Hope it helps :)
after install passport and all configurations run this command php artisan config:cache and will use your providers you selected to use it this worked with me
Can we use it with Laravel 5.3 API Authentication (Passport) ?