Ory Hydra/Kratos Integration in Go #2873
Replies: 10 comments 6 replies
-
Great stuff! :)) |
Beta Was this translation helpful? Give feedback.
-
awesome job |
Beta Was this translation helpful? Give feedback.
-
How does Hydra talk to Kratos? or vice versa. Thanks. |
Beta Was this translation helpful? Give feedback.
-
A flow diagram for anyone interested in how my implementation coordinates request/response with Kratos and Hydra 🙏🏼 |
Beta Was this translation helpful? Give feedback.
-
I have problems with glueing both Kratos and Hydra migrations together. kratos-migrate or hydra-migrate would fail because table |
Beta Was this translation helpful? Give feedback.
-
Hey @hiendaovinh @atreya2011 |
Beta Was this translation helpful? Give feedback.
-
Congrats with the release! |
Beta Was this translation helpful? Give feedback.
-
For anyone looking this is a good summary of how it looks currently: |
Beta Was this translation helpful? Give feedback.
-
@vinckr Thank you for the update! I will update my code to reflect the latest versions of both Hydra and Kratos. |
Beta Was this translation helpful? Give feedback.
-
@vinckr @everyone |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I have created an extremely simple
hydra + kratos
implementation in Go. Should be easy to follow and translate to any other language of your choice.It's WIP and does not have a README at the moment. Planning to add instructions on how to spin everything up within the next few days.
https://github.com/atreya2011/go-kratos-test without hydra
https://github.com/atreya2011/go-kratos-test/tree/hydra-consent with hydra
Diff
https://github.com/atreya2011/go-kratos-test/compare/hydra-consent
I have used the following versions and planning to keep them up to date to the best of my ability 🙇🏼♂️
There are 4 branches at the moment:
To try out the
kratos only
implementation, you need to have Docker installed and then do the following:docker-compose up --build
in one terminal sessionTo try out the reference
kratos + hydra
implementation, you need to havekratos only
implementation in the main branch! Sorry about this 🙇🏼♂️And then do the following:
Clone the repository locally.
git checkout hydra-consent
Run
docker-compose up --build
in one terminal session (in case hydra fails to startup, rundocker-compose down
anddocker-compose up --build
again)In yet another terminal session, create an OAuth2 Client
docker-compose exec hydra \ hydra clients create \ --endpoint http://127.0.0.1:4445 \ --id auth-code-client \ --secret secret \ --grant-types authorization_code,refresh_token \ --response-types code,id_token \ --scope openid,offline \ --callbacks http://127.0.0.1:5555/callback
docker-compose exec hydra \ hydra token user \ --client-id auth-code-client \ --client-secret secret \ --endpoint http://127.0.0.1:4444/ \ --port 5555 \ --scope openid,offline
I still have to address the following issues:
kratos only
implementation before trying out the hydra integration branch)Beta Was this translation helpful? Give feedback.
All reactions