-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yaml
51 lines (46 loc) · 1.17 KB
/
config.example.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
passwordAuthenticator:
type: user
config:
entries:
- username: user
enabled: true
passwordHash: $2a$12$vox7h99HV.gzbZGeBj69jeJVgkkP2nHTndG9USjp..00.WtIqvSpa # password is "password"
attributes:
roles: [user]
- username: admin
enabled: true
passwordHash: $2a$12$vox7h99HV.gzbZGeBj69jeJVgkkP2nHTndG9USjp..00.WtIqvSpa # password is "password"
attributes:
roles: [admin]
- username: customer
enabled: true
passwordHash: $2a$12$vox7h99HV.gzbZGeBj69jeJVgkkP2nHTndG9USjp..00.WtIqvSpa # password is "password"
attributes:
roles: [customer]
entitlements: [product1]
# passwordAuthenticator:
# type: unkey
# config:
# apiId: API_ID
# rootKey: ROOT_KEY
accessTokenIssuer:
type: jwt
config:
issuer: localhost:8080
privateKeyFile: private_key.pem
expiration: 15m
refreshTokenIssuer:
type: jwt
config:
issuer: localhost:8080
privateKeyFile: private_key.pem
# authorizer:
# type: default
# config:
# allowAnonymous: false
authorizer:
type: cerbos
config:
address: cerbos:3593
options:
plaintext: true