ember.js - EmberJS : When should I use the Torii vs Ember-Simple-Auth?

标签 ember.js ember-simple-auth torii

我正在尝试为我正在编写的 Web 应用程序学习身份验证。我想要的只是一个登录名和密码,并确保用户除非登录,否则无法编写/编辑彼此的帖子。

我不确定我是否完全理解它。但是,如果您需要进行 Facebook 或 Google 身份验证,似乎 Torii 更好,而 simple-auth 更适合仅登录。这是正确的吗?有没有其他 Torii 可以做的 Simple-Auth 不能做的事情?是否有一些简单认证可以做而鸟居不能做的事情?

最佳答案

实际上,正如您在 this link 中所读到的那样,将两者结合使用是有意义的:

Simple Auth is more about maintaining session/session events, providing a framework for authenticating a strategy, and authorizing requests. Torii is more about interfacing with these external authentications. So, it’s not as though Simple Auth and Torii could not exist side by side.

关于ember.js - EmberJS : When should I use the Torii vs Ember-Simple-Auth?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43742513/

相关文章:

Firebase 3.0 + Ember 2.0 : The Torii adapter must implement `open` for a session to be opened

ember.js - 登录后刷新申请路径

ember.js - EmberFire 身份验证和 ToriiFirebaseAdapter

node.js - Ember 生产构建错误 'WARN: Output exceeds 32000 characters'

ember.js - Ember-数据 "TypeError: this.container is undefined"

javascript - "TransitionTo"影响Ember中的页面刷新

ember.js - 从 Ember 发布到 DRF API 时出现 406( Not Acceptable )

javascript - 实现自定义 ember-simple-auth 身份验证器