Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.
like image 539
Vickey Shrestha Avatar asked Nov 24 '25 20:11

Vickey Shrestha


1 Answers

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

like image 64
mrasool.mirzaei Avatar answered Nov 26 '25 14:11

mrasool.mirzaei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!