简体   繁体   English

EmberJS:我什么时候应该使用Torii vs Ember-Simple-Auth?

[英]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.

相关问题 Ember-simple-auth,Torii和Facebook Oauth2的工作流程 - Workflow for Ember-simple-auth, Torii and Facebook Oauth2 使用ember-simple-auth和torii自定义身份验证器进行身份验证 - authenticating with ember-simple-auth and torii custom authenticator 带有Torii的Ember-Simple-Auth访问用户信息 - Ember-Simple-Auth with Torii access user info EmberJS从ember-simple-auth身份验证器检索当前用户 - EmberJS retrieve current user from ember-simple-auth authenticator 重定向步骤不使用带有torii和google-oauth2的ember-simple-auth触发 - redirect step not firing using ember-simple-auth with torii and google-oauth2 使用ember-simple-auth和torii,尽管服务器响应成功,但模式永远不会关闭,会话永远不会更新 - Using ember-simple-auth and torii, modal never closes and session never updates despite successful server response ember-simple-auth和torii firebase TypeError:将圆形结构转换为JSON - ember-simple-auth and torii firebase TypeError: Converting circular structure to JSON 如何使用ember-simple-auth在带有ember数据的自定义url api中设置标头? - How can I use ember-simple-auth to set header in custom url api with ember data? ember-simple-auth和IE - ember-simple-auth and IE Ember-Simple-Auth注销并在 - Ember-Simple-Auth logout and in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM