From 523ce77a841047aacd52c7f7aaf5660d291f5d59 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 20 May 2020 13:45:33 +0200 Subject: [PATCH] Update README --- Makefile | 23 ++++++++++++++++++----- README.md | 14 +++++++++++--- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 10081b0..76d5aa7 100644 --- a/Makefile +++ b/Makefile @@ -25,13 +25,26 @@ up: down: docker-compose down -v --remove-orphans -create-client: - docker-compose exec hydra \ - sh -c 'HYDRA_URL=http://localhost:4445 hydra clients create -c http://localhost:3002/oauth2/callback' +create-default-client: + docker-compose exec \ + -e HYDRA_URL=http://localhost:4445 \ + hydra \ + hydra clients create \ + -c http://localhost:3002/oauth2/callback \ + --post-logout-callbacks http://localhost:3002 + list-clients: - docker-compose exec hydra \ - sh -c 'HYDRA_URL=http://localhost:4445 hydra clients list' + docker-compose exec \ + -e HYDRA_URL=http://localhost:4445 \ + hydra \ + hydra clients list + +hydra-interactive: + docker-compose exec \ + -e HYDRA_URL=http://localhost:4445 \ + hydra \ + /bin/sh clean: rm -rf release diff --git a/README.md b/README.md index e3a3d98..3e5d320 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,18 @@ Ce middleware permet une authentification de type "[passwordless](https://auth0. # Dans un premier terminal, lancer le serveur hydra-passwordless + hydra (via docker-compose/modd) make watch +# Optionnel +# # Dans un dernier terminal, générer le clientId et le clientSecret -# pour le serveur hydra-passwordless. -# Ces identifiants pourront être utilisés par votre application OIDC. -make create-client +# pour l'application de test de https://forge.cadoles.com/wpetit/goweb-oidc +make create-default-client + +# Vous pouvez également utiliser le client hydra pour gérer vos clients OIDC +make hydra-interactive + +# Une fois dans le conteneur, vous pouvez utiliser la commande `hydra`. +# Par exemple, pour lister les clients existants +hydra clients list ``` ### URLs