-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Authentication (Passport) #9
Comments
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 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) |
@samirgit thanks for your reply. Yes I noticed that, for the moment we can use JWT for this purpose. |
hey guys, thanks. |
Hi all, see this. |
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) ?
The text was updated successfully, but these errors were encountered: