This is an example integration of a simple Identity Provide and Hydra The IdP doesn't authenticate, it grants access to every request. Normally you'd add a step for user authentication, like checking user:password credentials.
A production IdP for Hydra is being developed here
Example uses docker-compose for orchestration, it starts two containers:
- hydra with in-memory database, listening on https://localhost:4444
- idp listening on http://localhost:3000 (this should be https in production)
Start Hydra and browse it's logs. Copy the client's credentials, you'll need them in Console 3.
docker-compose up hydra
Start IdP and browse it's logs
docker-compose up idp
Perform some experiments like:
# Pass the credentials from Console 1
hydra connect
# Might not work with Chrome, but works with Firefox
hydra token user --skip-tls-verify