Update README
This commit is contained in:
parent
61aae078b5
commit
523ce77a84
23
Makefile
23
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
|
||||
|
|
14
README.md
14
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
|
||||
|
|
Loading…
Reference in New Issue