2021-01-23 22:55:47 +05:30
|
|
|
# DEPRECATED: use config.yaml.dist and config.dev.yaml examples in the repository root.
|
|
|
|
# TODO: keep this until all references are updated.
|
|
|
|
|
2016-10-14 21:28:57 +05:30
|
|
|
# The base path of dex and the external name of the OpenID Connect service.
|
2016-11-09 01:21:59 +05:30
|
|
|
# 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 21:28:57 +05:30
|
|
|
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-09 01:21:59 +05:30
|
|
|
#
|
2021-01-14 21:06:59 +05:30
|
|
|
# See the documentation (https://dexidp.io/docs/storage/) for further information.
|
2016-08-05 22:20:22 +05:30
|
|
|
storage:
|
2016-10-04 01:16:49 +05:30
|
|
|
type: sqlite3
|
|
|
|
config:
|
|
|
|
file: examples/dex.db
|
2016-08-05 22:20:22 +05:30
|
|
|
|
2019-08-03 18:32:54 +05:30
|
|
|
# type: mysql
|
|
|
|
# config:
|
|
|
|
# host: localhost
|
|
|
|
# port: 3306
|
|
|
|
# database: dex
|
|
|
|
# user: mysql
|
|
|
|
# password: mysql
|
|
|
|
# ssl:
|
|
|
|
# mode: "false"
|
|
|
|
|
|
|
|
# type: postgres
|
|
|
|
# config:
|
|
|
|
# host: localhost
|
|
|
|
# port: 5432
|
|
|
|
# database: dex
|
|
|
|
# user: postgres
|
|
|
|
# password: postgres
|
|
|
|
# ssl:
|
|
|
|
# mode: disable
|
|
|
|
|
|
|
|
# type: etcd
|
|
|
|
# config:
|
|
|
|
# endpoints:
|
|
|
|
# - http://localhost:2379
|
|
|
|
# namespace: dex/
|
|
|
|
|
|
|
|
# type: kubernetes
|
|
|
|
# config:
|
|
|
|
# kubeConfigFile: $HOME/.kube/config
|
|
|
|
|
2016-11-09 01:21:59 +05:30
|
|
|
# Configuration for the HTTP endpoints.
|
2016-08-05 22:20:22 +05:30
|
|
|
web:
|
2016-12-01 03:56:54 +05:30
|
|
|
http: 0.0.0.0:5556
|
2016-11-09 01:21:59 +05:30
|
|
|
# Uncomment for HTTPS options.
|
2016-10-14 21:28:57 +05:30
|
|
|
# https: 127.0.0.1:5554
|
|
|
|
# tlsCert: /etc/dex/tls.crt
|
|
|
|
# tlsKey: /etc/dex/tls.key
|
2016-08-05 22:20:22 +05:30
|
|
|
|
2021-01-12 23:50:38 +05:30
|
|
|
# Configuration for dex appearance
|
|
|
|
# frontend:
|
|
|
|
# issuer: dex
|
|
|
|
# logoURL: theme/logo.png
|
|
|
|
# dir: web/
|
|
|
|
# theme: light
|
|
|
|
|
2017-12-20 20:33:32 +05:30
|
|
|
# Configuration for telemetry
|
|
|
|
telemetry:
|
|
|
|
http: 0.0.0.0:5558
|
|
|
|
|
2016-11-09 01:21:59 +05:30
|
|
|
# Uncomment this block to enable the gRPC API. This values MUST be different
|
|
|
|
# from the HTTP endpoints.
|
2016-10-14 21:28:57 +05:30
|
|
|
# grpc:
|
|
|
|
# addr: 127.0.0.1:5557
|
2021-01-12 23:50:38 +05:30
|
|
|
# tlsCert: examples/grpc-client/server.crt
|
|
|
|
# tlsKey: examples/grpc-client/server.key
|
|
|
|
# tlsClientCA: examples/grpc-client/ca.crt
|
2016-08-05 22:20:22 +05:30
|
|
|
|
2016-11-09 01:21:59 +05:30
|
|
|
# Uncomment this block to enable configuration for the expiration time durations.
|
|
|
|
# expiry:
|
2020-01-29 00:44:30 +05:30
|
|
|
# deviceRequests: "5m"
|
2016-11-09 01:21:59 +05:30
|
|
|
# signingKeys: "6h"
|
|
|
|
# idTokens: "24h"
|
2020-10-28 11:56:34 +05:30
|
|
|
# refreshTokens:
|
|
|
|
# reuseInterval: "3s"
|
|
|
|
# validIfNotUsedFor: "2190h"
|
|
|
|
# absoluteLifetime: "5000h"
|
2016-11-09 01:21:59 +05:30
|
|
|
|
2016-12-16 03:17:37 +05:30
|
|
|
# Options for controlling the logger.
|
|
|
|
# logger:
|
|
|
|
# level: "debug"
|
|
|
|
# format: "text" # can also be "json"
|
|
|
|
|
2019-08-09 22:25:25 +05:30
|
|
|
# Default values shown below
|
2017-06-23 23:57:49 +05:30
|
|
|
# oauth2:
|
2019-08-09 22:25:25 +05:30
|
|
|
# use ["code", "token", "id_token"] to enable implicit flow for web-only clients
|
|
|
|
# responseTypes: [ "code" ] # also allowed are "token" and "id_token"
|
|
|
|
# By default, Dex will ask for approval to share data with application
|
|
|
|
# (approval for sharing data from connected IdP to Dex is separate process on IdP)
|
|
|
|
# skipApprovalScreen: false
|
|
|
|
# If only one authentication method is enabled, the default behavior is to
|
|
|
|
# go directly to it. For connected IdPs, this redirects the browser away
|
|
|
|
# from application to upstream provider such as the Google login page
|
|
|
|
# alwaysShowLoginScreen: false
|
2021-01-12 23:50:38 +05:30
|
|
|
# Uncomment the passwordConnector to use a specific connector for password grants
|
2018-01-03 08:45:01 +05:30
|
|
|
# passwordConnector: local
|
2017-06-23 23:57:49 +05:30
|
|
|
|
2016-10-06 05:20:02 +05:30
|
|
|
# Instead of reading from an external storage, use this list of clients.
|
2016-10-14 21:28:57 +05:30
|
|
|
#
|
2017-03-20 21:46:56 +05:30
|
|
|
# If this option isn't chosen clients may be added through the gRPC API.
|
2016-08-05 22:20:22 +05:30
|
|
|
staticClients:
|
|
|
|
- id: example-app
|
|
|
|
redirectURIs:
|
|
|
|
- 'http://127.0.0.1:5555/callback'
|
|
|
|
name: 'Example App'
|
|
|
|
secret: ZXhhbXBsZS1hcHAtc2VjcmV0
|
2020-05-12 18:59:15 +05:30
|
|
|
# - id: example-device-client
|
|
|
|
# redirectURIs:
|
2020-05-14 01:08:43 +05:30
|
|
|
# - /device/callback
|
2020-05-12 18:59:15 +05:30
|
|
|
# name: 'Static Client for Device Flow'
|
2020-05-14 01:08:43 +05:30
|
|
|
# public: true
|
2016-10-14 21:28:57 +05:30
|
|
|
connectors:
|
|
|
|
- type: mockCallback
|
|
|
|
id: mock
|
|
|
|
name: Example
|
2020-05-20 23:30:06 +05:30
|
|
|
# - type: google
|
2016-10-23 02:06:31 +05:30
|
|
|
# id: google
|
|
|
|
# name: Google
|
|
|
|
# config:
|
|
|
|
# issuer: https://accounts.google.com
|
2016-11-09 01:21:59 +05:30
|
|
|
# # Connector config values starting with a "$" will read from the environment.
|
2016-10-23 02:06:31 +05:30
|
|
|
# clientID: $GOOGLE_CLIENT_ID
|
|
|
|
# clientSecret: $GOOGLE_CLIENT_SECRET
|
2016-11-21 23:55:16 +05:30
|
|
|
# redirectURI: http://127.0.0.1:5556/dex/callback
|
2017-07-22 04:18:21 +05:30
|
|
|
# hostedDomains:
|
|
|
|
# - $GOOGLE_HOSTED_DOMAIN
|
2016-10-14 21:28:57 +05:30
|
|
|
|
2016-11-09 01:21:59 +05:30
|
|
|
# Let dex keep a list of passwords which can be used to login to dex.
|
2016-10-06 05:20:02 +05:30
|
|
|
enablePasswordDB: true
|
|
|
|
|
|
|
|
# A static list of passwords to login the end user. By identifying here, dex
|
2016-10-14 21:28:57 +05:30
|
|
|
# won't look in its underlying storage for passwords.
|
|
|
|
#
|
2017-03-20 21:46:56 +05:30
|
|
|
# If this option isn't chosen users may be added through the gRPC API.
|
2016-10-06 05:20:02 +05:30
|
|
|
staticPasswords:
|
|
|
|
- email: "admin@example.com"
|
|
|
|
# bcrypt hash of the string "password"
|
2016-11-04 09:38:50 +05:30
|
|
|
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
|
2016-10-06 05:20:02 +05:30
|
|
|
username: "admin"
|
|
|
|
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
|