diff --git a/config.yaml.dist b/config.yaml.dist index b7e1410ffc..2f5c9406e3 100644 --- a/config.yaml.dist +++ b/config.yaml.dist @@ -119,6 +119,21 @@ web: # - 'http://127.0.0.1:5555/callback' # name: 'Example App' # secret: ZXhhbXBsZS1hcHAtc2VjcmV0 +# +# # Example using environment variables +# # These fields are mutually exclusive with id and secret respectively. +# - idEnv: DEX_CLIENT_ID +# secretEnv: DEX_CLIENT_SECRET +# redirectURIs: +# - 'https://app.example.com/callback' +# name: 'Production App' +# +# # Example of a public client (no secret required) +# - id: example-device-client +# redirectURIs: +# - /device/callback +# name: 'Static Client for Device Flow' +# public: true # Connectors are used to authenticate users against upstream identity providers. # diff --git a/examples/config-dev.yaml b/examples/config-dev.yaml index 147597a265..43db8824b0 100644 --- a/examples/config-dev.yaml +++ b/examples/config-dev.yaml @@ -131,6 +131,15 @@ staticClients: - 'http://127.0.0.1:5555/callback' name: 'Example App' secret: ZXhhbXBsZS1hcHAtc2VjcmV0 + +# Example using environment variables +# Set DEX_CLIENT_ID and DEX_SECURE_CLIENT_SECRET before starting Dex +# - idEnv: DEX_CLIENT_ID +# secretEnv: DEX_CLIENT_SECRET +# redirectURIs: +# - 'http://127.0.0.1:5556/callback' +# name: 'Secure Example App' + # - id: example-device-client # redirectURIs: # - /device/callback