hydra-passwordless/README.md

42 lines
1.5 KiB
Markdown
Raw Normal View History

2020-04-08 08:56:42 +02:00
# hydra-passwordless
2020-05-20 11:13:14 +02:00
["Login & Consent App"](https://www.ory.sh/hydra/docs/login-consent-flow/) pour le serveur d'authentification OpenID Connect [Hydra](https://www.ory.sh/hydra/).
Ce middleware permet une authentification de type "[passwordless](https://auth0.com/docs/connections/passwordless)" compatible avec les applications utilisant le protocole [OpenID Connect](https://fr.wikipedia.org/wiki/OpenID_Connect) pour l'authentification de leurs utilisateurs.
2020-04-08 08:56:42 +02:00
## Démarrer avec les sources
2020-04-08 09:02:50 +02:00
```shell
2020-05-20 11:13:14 +02:00
# Dans un premier terminal, lancer le serveur hydra-passwordless + hydra (via docker-compose/modd)
2020-04-08 09:02:50 +02:00
make watch
2020-05-20 13:45:33 +02:00
# Optionnel
#
2020-04-08 09:02:50 +02:00
# Dans un dernier terminal, générer le clientId et le clientSecret
2020-05-20 13:45:33 +02:00
# 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
2020-04-08 08:56:42 +02:00
```
2020-04-08 09:02:50 +02:00
2020-05-20 11:13:14 +02:00
### URLs
2020-04-08 08:56:42 +02:00
2020-05-20 11:13:14 +02:00
|URL|Description|
|---|-----------|
|http://localhost:4444/|Points d'entrée OIDC Hydra|
|http://localhost:4445/|API d'administration Hydra|
|http://localhost:3000/|Middleware Hydra hydra-passwordless (Voir ["Hydra- Login & Consent App"](https://www.ory.sh/hydra/docs/login-consent-flow/))
|http://localhost:3001/|Interface web [FakeSMTP](https://forge.cadoles.com/wpetit/fake-smtp)|
2020-04-08 09:02:50 +02:00
2020-04-08 08:56:42 +02:00
## FAQ
### Générer une version de distribution
```
make release
```