Laravel Sanctum vs护照 [英] Laravel Sanctum vs Passport

查看:500
本文介绍了Laravel Sanctum vs护照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这2个有什么区别?对于简单的VueJS应用程序,哪一个更好? 我读过几次他们的文件,但仍然感到困惑. 非常感谢.

What are the differences between these 2? And which one is better for a simple VueJS app? I've read their documents a few times but still confused. Thank you very much.

推荐答案

Passport在几分钟之内即可为您的Laravel应用程序提供完整的OAuth2服务器实现.因此,必须对OAuth2有所了解.

Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. It is therefore necessary to have a brief knowledge of OAuth2.

Sanctum是一个简单的程序包,可以向您的用户发行API令牌,而不会导致OAuth复杂化. Sanctum使用Laravel的内置基于cookie的会话身份验证服务.

Sanctum it is a simple package to issue API tokens to your users without the complication of OAuth. Sanctum uses Laravel's built-in cookie based session authentication services.

在小型应用程序中,请使用Sanctum.简单又容易.

In a small application use Sanctum. it's simple and easy.

这篇关于Laravel Sanctum vs护照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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