-
Notifications
You must be signed in to change notification settings - Fork 0
/
doorkeeper.yaml
34 lines (28 loc) · 986 Bytes
/
doorkeeper.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
# This file contains the configuration for the Doorkeeper service.
# The whole file supports environment variables expansion,
# so you can use them in any part of the file
# (Required) Authorization configuration such as the type or its potential parameters
authorization:
type: hmac # hmac
param:
type: query # header|query
name: token
# (Optional) When authorization is configured as HMAC, this section is required
hmac:
type: url
encryptionKey: "${ENVIRONMENT_VARIABLE_WITH_ENCRYPTION_KEY}"
encryptionAlgorithm: "sha256"
url:
# (Optional) Transforms special characters (including /) with %XX sequences as needed
# When lowerEncode is true, encoded chars will be lowercase (e.g. %2f instead of %2F)
earlyEncode: true
lowerEncode: true
# (Optional) List of modifiers to apply to the request before signing it
modifiers:
- type: path
path:
pattern: ^(/[a-zA-Z0-9\-_]/)
replace: ""
#- type: header
# header:
# # TODO