对于创建完整的身份提供者(IdP),你在Ory Hydra和Ory Kratos之间感到困惑。

huangapple go评论99阅读模式
英文:

Confused between Ory Hydra and Ory Kratos for creating full-blown idp

问题

我有一个项目,我想要构建一个完整的 IDP(使用 Golang)。从技术上讲,用户想要使用我的服务来进行单点登录到另一个系统。我希望从零开始构建这个服务。在研究开源的 IDP 解决方案时,我遇到了 ory/Hydra 和 ory/Kratos。我查阅了它们的文档并完成了一个快速入门教程。但我仍然对上述两个库中哪个适合开发这个服务感到困惑。

从高层次的角度来看,这是我想要做的事情:

  1. 存在一个现有的第三方 Web 应用 X。
  2. 用户已经拥有我的服务 Y 的登录凭据。
  3. 用户想要在应用 X 中发表一些评论。
  4. 如果用户未登录,则将其重定向到我的服务 Y 的登录界面。
  5. 登录后,回调 URL 将其带回应用 X 的评论部分。
英文:

I have a project where I want to build a full-blown IDP (using Golang). So technically, a user wants to SSO into another system using my service. I am looking to build this service from scratch. Upon researching for open-source IDP solutions, I came across ory/Hydra and ory/Kratos. I went through their documentation and did a quick-start tutorial. I am still confused about which of the above 2 libraries are suitable for the development of this service.

From a high-level standpoint, this is what I am trying to do.

  1. There is an existing third-party web app X.
  2. A user has already login credentials for my service Y.
  3. A user wants to post some comments in app X.
  4. He/She is redirected to my service Y login screen if not logged in.
  5. After login, the Callback URL returns him back to app X comment section.

答案1

得分: 6

ory/Kratos不是你要找的工具,因为它是为了满足用户管理的基本需求而设计的。

适合你的工具是ory/Hydra。我从它的文档中复制了以下内容:

> 如果你希望你不拥有的应用程序和网站将你的应用程序作为潜在的登录方式(例如与“使用Google登录”、“使用Apple登录”并列),ORY Hydra是适合你的工具。

来源:https://www.ory.sh/hydra/docs/concepts/before-oauth2

英文:

ory/Kratos is not what you are looking for because it is designed to answer your user management basic needs.

The right tool for you is ory/Hydra. I have copied this from its documentation:

> If you want apps and websites you don't own to use your application as
> a potential sign in (e.g. be listed alongside "Sign in with Google",
> "Sign in with Apple"), ORY Hydra is the right tool for you.

source: https://www.ory.sh/hydra/docs/concepts/before-oauth2

huangapple
  • 本文由 发表于 2022年2月10日 02:04:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/71054556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定