Closed schreddies closed 5 months ago
Hello, I will try updating the README with the instructions within the next few days. In the meantime, the following are instructions for deployment. Let me know if it works for you.
Also, I have posted solutions to some common unresolved issues over here :) https://github.com/atreya2011/go-kratos-test/issues/1#issuecomment-982336976
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 have
kratos 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, run docker-compose down
and docker-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)@atreya2011 thank you a lot!
I am interested in making the hydra as the Authorization Server, because it seems to address my idea of making oidc
with API, am I right? So hydra
branch?
Ah I see, you can try checking out the hydra-consent
branch instead of the hydra
branch. And let me know if you are facing any issues.
@schreddies Were you able to set up and try out the hydra-consent branch? Let me know if you are having an issues 🙏🏼
Hi, Thank you so much for this code, it will make my life easier. May I ask you for some instruction for deployment instruction.
docker-compose up
seems not working