2016-10-14 15:58:57 +00:00
|
|
|
# The base path of dex and the external name of the OpenID Connect service.
|
2016-11-08 19:51:59 +00:00
|
|
|
# This is the canonical URL that all clients MUST use to refer to dex. If a
|
|
|
|
# path is provided, dex's HTTP service will listen at a non-root URL.
|
2016-10-14 15:58:57 +00:00
|
|
|
issuer: http://127.0.0.1:5556/dex
|
|
|
|
|
|
|
|
# The storage configuration determines where dex stores its state. Supported
|
|
|
|
# options include SQL flavors and Kubernetes third party resources.
|
2016-11-08 19:51:59 +00:00
|
|
|
#
|
|
|
|
# See the storage document at Documentation/storage.md for further information.
|
2016-08-05 16:50:22 +00:00
|
|
|
storage:
|
2016-10-03 19:46:49 +00:00
|
|
|
type: sqlite3
|
|
|
|
config:
|
|
|
|
file: examples/dex.db
|
2016-08-05 16:50:22 +00:00
|
|
|
|
2016-11-08 19:51:59 +00:00
|
|
|
# Configuration for the HTTP endpoints.
|
2016-08-05 16:50:22 +00:00
|
|
|
web:
|
2016-11-30 22:26:54 +00:00
|
|
|
http: 0.0.0.0:5556
|
2016-11-08 19:51:59 +00:00
|
|
|
# Uncomment for HTTPS options.
|
2016-10-14 15:58:57 +00:00
|
|
|
# https: 127.0.0.1:5554
|
|
|
|
# tlsCert: /etc/dex/tls.crt
|
|
|
|
# tlsKey: /etc/dex/tls.key
|
2016-08-05 16:50:22 +00:00
|
|
|
|
2016-11-08 19:51:59 +00:00
|
|
|
# Uncomment this block to enable the gRPC API. This values MUST be different
|
|
|
|
# from the HTTP endpoints.
|
2016-10-14 15:58:57 +00:00
|
|
|
# grpc:
|
|
|
|
# addr: 127.0.0.1:5557
|
2017-02-20 16:45:32 +00:00
|
|
|
# tlsCert: examples/grpc-client/server.crt
|
|
|
|
# tlsKey: examples/grpc-client/server.key
|
|
|
|
# tlsClientCA: /etc/dex/client.crt
|
2016-08-05 16:50:22 +00:00
|
|
|
|
2016-11-08 19:51:59 +00:00
|
|
|
# Uncomment this block to enable configuration for the expiration time durations.
|
|
|
|
# expiry:
|
|
|
|
# signingKeys: "6h"
|
|
|
|
# idTokens: "24h"
|
|
|
|
|
2016-12-15 21:47:37 +00:00
|
|
|
# Options for controlling the logger.
|
|
|
|
# logger:
|
|
|
|
# level: "debug"
|
|
|
|
# format: "text" # can also be "json"
|
|
|
|
|
2016-10-05 23:50:02 +00:00
|
|
|
# Instead of reading from an external storage, use this list of clients.
|
2016-10-14 15:58:57 +00:00
|
|
|
#
|
2017-03-20 16:16:56 +00:00
|
|
|
# If this option isn't chosen clients may be added through the gRPC API.
|
2016-08-05 16:50:22 +00:00
|
|
|
staticClients:
|
|
|
|
- id: example-app
|
|
|
|
redirectURIs:
|
|
|
|
- 'http://127.0.0.1:5555/callback'
|
|
|
|
name: 'Example App'
|
|
|
|
secret: ZXhhbXBsZS1hcHAtc2VjcmV0
|
2016-10-05 23:50:02 +00:00
|
|
|
|
2016-10-14 15:58:57 +00:00
|
|
|
connectors:
|
|
|
|
- type: mockCallback
|
|
|
|
id: mock
|
|
|
|
name: Example
|
2016-10-22 20:36:31 +00:00
|
|
|
# - type: oidc
|
|
|
|
# id: google
|
|
|
|
# name: Google
|
|
|
|
# config:
|
|
|
|
# issuer: https://accounts.google.com
|
2016-11-08 19:51:59 +00:00
|
|
|
# # Connector config values starting with a "$" will read from the environment.
|
2016-10-22 20:36:31 +00:00
|
|
|
# clientID: $GOOGLE_CLIENT_ID
|
|
|
|
# clientSecret: $GOOGLE_CLIENT_SECRET
|
2016-11-21 18:25:16 +00:00
|
|
|
# redirectURI: http://127.0.0.1:5556/dex/callback
|
2017-06-21 06:01:35 +00:00
|
|
|
# hostedDomain: $GOOGLE_HOSTED_DOMAIN
|
2016-10-14 15:58:57 +00:00
|
|
|
|
2016-11-08 19:51:59 +00:00
|
|
|
# Let dex keep a list of passwords which can be used to login to dex.
|
2016-10-05 23:50:02 +00:00
|
|
|
enablePasswordDB: true
|
|
|
|
|
|
|
|
# A static list of passwords to login the end user. By identifying here, dex
|
2016-10-14 15:58:57 +00:00
|
|
|
# won't look in its underlying storage for passwords.
|
|
|
|
#
|
2017-03-20 16:16:56 +00:00
|
|
|
# If this option isn't chosen users may be added through the gRPC API.
|
2016-10-05 23:50:02 +00:00
|
|
|
staticPasswords:
|
|
|
|
- email: "admin@example.com"
|
|
|
|
# bcrypt hash of the string "password"
|
2016-11-04 04:08:50 +00:00
|
|
|
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
|
2016-10-05 23:50:02 +00:00
|
|
|
username: "admin"
|
|
|
|
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
|