Laravel, what is better normal authentication or Passport?

人盡茶涼 提交于 2019-12-11 04:11:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!