简体   繁体   English

OAuth2是独立的身份验证/授权系统吗?

[英]Is OAuth2 a stand alone authentication/authorization system?

I'd like to develop an app using Laravel to build the API and have an EmberJS front end consuming the API. 我想使用Laravel开发一个应用程序来构建API,并让EmberJS前端使用该API。 Sentry seems to be the go-to for authorization and authentication for Laravel so i thought i'd use that. Sentry似乎是Laravel授权和认证的必经之路,所以我认为我会使用它。 I've also read that it's a good idea to use OAuth2 to lock down your API. 我还读到,使用OAuth2锁定API是个好主意。

Does OAuth2 replace something like Sentry or work in unison with it? OAuth2会取代哨兵之类的东西还是与之协同工作?

And if i were to use OAuth2 how would that work with the EmberJS front end? 如果我要使用OAuth2,那么它将如何与EmberJS前端一起工作? Would i have to register the ember front end as a separate app for OAuth2 to work? 我是否需要将ember前端注册为单独的应用程序才能使用OAuth2?

I'm a bit confused on how these pieces should work together. 我对这些部分如何协同工作感到有些困惑。

OAuth2 is a spec and have many implementations. OAuth2是一个规范,具有许多实现。 The official website lists a few. 官方网站列出了一些。 I looked around and found this one for Ember.js ( https://github.com/amkirwan/ember-oauth2 ). 我环顾四周,找到了一个适用于Ember.js( https://github.com/amkirwan/ember-oauth2 )的文件。 Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM