Laravel,什么是更好的普通身份验证或护照? [英] Laravel, what is better normal authentication or Passport?

查看:78
本文介绍了Laravel,什么是更好的普通身份验证或护照?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,我对Passport很好奇,也许我不太了解Passport是否比使用常规Laravel身份验证使用Oauth2作为开放标准进行身份验证是否更好,因为我的应用程序未通过其他服务器进行身份验证?

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!

推荐答案

Passport比Web应用程序更适合API,因此最好使用Laravel中的标准身份验证方法.

Passport is more geared towards APIs than web apps so you are better off using the standard authentication method in Laravel.

即使在Laravel的Passport页面上,标题也是"API身份验证(护照)": https://laravel .com/docs/5.4/passport

Even on Laravel's Passport page the title is "API Authentication (Passport)": https://laravel.com/docs/5.4/passport

如果您想进一步了解API是什么及其用途,请执行以下操作: https://en.wikipedia.org/wiki/Application_programming_interface

If you would like to learn more about what an API is and its uses: https://en.wikipedia.org/wiki/Application_programming_interface

这篇关于Laravel,什么是更好的普通身份验证或护照?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆