问题
I am developing a web app and I am very curious about Passport, perhaps I don't quite understand if its basically better for authenticating using Oauth2 as a open standard than regular Laravel authentication since my app is not authenticating through another server?
Can you please advise? Thanks for the tip!
回答1:
Passport is more geared towards APIs than web apps so you are better off using the standard authentication method in Laravel.
Even on Laravel's Passport page the title is "API Authentication (Passport)": https://laravel.com/docs/5.4/passport
If you would like to learn more about what an API is and its uses: https://en.wikipedia.org/wiki/Application_programming_interface
来源:https://stackoverflow.com/questions/45989191/laravel-what-is-better-normal-authentication-or-passport