推出自己的身份验证和授权有多实用?

How practical is it to roll your own authentication and authorization?

我正在寻求保护 API,我想知道推出自己的身份验证和授权服务是否实用?

是否有这方面的任何好的例子,或者是否遵循了我所希望的最好的 OAuth 规范?

没有收到这个问题的答案,但是我意识到不建议重新创建您自己的身份验证和授权系统,因为 OAuth 规范涉及许多边缘情况。

但是,我确实偶然发现了许多您可以配置和部署的开源身份解决方案:

  1. https://github.com/ory
  2. https://github.com/dexidp/dex
  3. https://github.com/authelia/authelia
  4. https://github.com/keycloak/keycloak
  5. https://www.gluu.org/
  6. https://github.com/accounts-js/accounts

(加上源代码中的许多其他替代项 link)

来源:https://news.ycombinator.com/item?id=25212694