Hydra is an open source OAuth2 and OpenID Connect server.
This is a Terraform provider to create OAuth Clients and Policies required by the services in an infrastructure.
-
hydra_client
Manages OAuth2 clients with given configuration -
hydra_policy
Manages Hydra policies
Please have a look at the example configuration in example directory to check which options are available.
For a detailed explanation of each configuration option check hydra API documentation
Check terraform guide on installtion
These default environment variables will be used if omitted from provider config block.
HYDRA_CLIENT_ID
HYDRA_CLIENT_SECRET
HYDRA_CLUSTER_URL
To run examples in /examples
cd
into directory and issue following commands:
terraform plan
shows which changes it will bringterraform apply
actually creates configured clients and policies