This repository contains a Docker Compose definition to set up the authorization server required for OAuth2. It relies on Ory Hydra
- Docker
- Copy .env.example to .env
- In .env:
⋅⋅* set
SYSTEM_SECRET
andOIDC_SUBJECT_TYPE_PAIRWISE_SALT
to random and secure strings ⋅⋅* If you use a test environment without HTTPS, setSERVE_PARAMS=--dangerous-force-http
⋅⋅* If you use HTTP for last mile, setHTTPS_ALLOW_TERMINATION_FROM
to the SSL server's subnet ⋅⋅* SetOAUTH2_CONSENT_URL
andOAUTH2_LOGIN_URL
to the client's corresponding URLs ⋅⋅* Set Postgres credentials and update them insideDATABASE_URL
- Run docker-compose up