-
Notifications
You must be signed in to change notification settings - Fork 3
/
dex.dev.yaml
56 lines (49 loc) · 2.1 KB
/
dex.dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# A dex configuration file, see
# https://github.com/dexidp/dex/blob/master/examples/config-dev.yaml and
# https://github.com/wearearima/spring-boot-dex/blob/master/dex/spring-boot-demo.yaml
# for more details.
#
# In order to start dex, run "gradlew generateComposeFile" followed by
# (from the build/ directory) "docker compose up -d dex" or
# "docker compose up dex" (using a separate terminal window, useful for debugging).
issuer: http://127.0.0.1:5556/dex
storage:
type: sqlite3
config:
file: /var/dex/dex.db
web:
http: 0.0.0.0:5556
logger:
level: "debug"
staticClients:
- id: save-gateway-dev
redirectURIs:
- 'http://localhost:8080/login/oauth2/code/dex'
name: 'SAVE Cloud Service'
secret: 123test123
enablePasswordDB: true
staticPasswords:
- email: "admin@saveourtool.com"
# bcrypt hash of the string "password": $(echo password | htpasswd -BinC 10 admin | cut -d: -f2)
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
- email: "dexuser@example.com"
# bcrypt hash of the string "dexpassword": $(echo 'dexpassword' | htpasswd -BinC 16 'dexuser' | cut -d: -f2)
#
# "htpasswd" is a part of apache2-utils.
#
# The maximum cost supported by htpasswd is 17.
# dex, on the other hand, only supports values up to 16.
hash: "$2y$16$XVnJU8BZX/fUck0sqEn6quDCzgBHaYOYAhjeI2sC/QkoYM/7u9bHa"
# This is the name of the user from dex perspective only.
#
# Since dex (unlike GitHub), provides no means to query user details (i.e.
# it has no User API), the auto-generated username in the "user" table will
# initially look like "CiRlOGI3NWFmNC1kMDkzLTRhZjUtODk3NC0xMzZlY2IxMGNiNzcSBWxvY2Fs".
username: "dexuser"
# A version 4 (random) GUID (DCE 1.1, ISO/IEC 11578:1996),
# can be generated at https://www.guidgenerator.com/online-guid-generator.aspx,
# using "uuidgen -r" (uuid-runtime), "uuid", or "uuidcdef -u" (Linux),
# or by running "python3 -c 'import uuid; print(str(uuid.uuid4()))'".
userID: "e8b75af4-d093-4af5-8974-136ecb10cb77"