[英]EmberJS: When should I use the Torii vs Ember-Simple-Auth?
I'm trying to learn authentication for a web app that I'm writing. 我正在尝试学习我正在编写的Web应用程序的身份验证。 All I want is a login and password, and to make sure the user can't write/edit each others posts unless they are logged in.
我想要的只是一个登录名和密码,并确保用户无法编写/编辑其他帖子,除非他们已登录。
I'm not sure I fully understand it. 我不确定我是否完全理解它。 But it seems that Torii is better if you need to do Facebook or Google authentication, whereas simple-auth is better for just logging in. Is that correct?
但是,如果您需要进行Facebook或Google身份验证,Torii似乎更好,而simple-auth更适合登录。这是正确的吗? Is there other things Torii can do that Simple-Auth can't?
还有其他东西Torii可以做的那样Simple-Auth不能吗? Are there things that Simple-Auth can do that Torii can't?
有些东西,Simple-Auth可以做Torii不能做的事情吗?
Actually, as you can read in this link , it makes sense to use both together: 实际上,正如您可以在此链接中阅读的那样,将两者结合使用是有意义的:
Simple Auth is more about maintaining session/session events, providing a framework for authenticating a strategy, and authorizing requests.
Simple Auth更多地是关于维护会话/会话事件,提供用于验证策略和授权请求的框架。 Torii is more about interfacing with these external authentications.
Torii更多的是与这些外部认证接口。 So, it's not as though Simple Auth and Torii could not exist side by side.
因此,并不是简单的Auth和Torii不能并存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.