我正在尝试为我正在编写的 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/