-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathexample_rules.yaml
45 lines (45 loc) · 989 Bytes
/
example_rules.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
version: "1alpha4"
name: test-rule-set
rules:
- id: rule:foo
match:
routes:
- path: /foo/:bar/**
path_params:
- name: bar
type: glob
value: "*baz"
backtracking_enabled: false
methods:
- GET
- POST
hosts:
- type: exact
value: foo.bar
scheme: http
forward_to:
host: bar.foo
execute:
- authenticator: unauthorized_authenticator
- authenticator: jwt_authenticator
config:
assertions:
allowed_algorithms:
- RS256
issuers:
- http://127.0.0.1:4444/
scopes:
- profile
- authenticator: hydra_authenticator
- contextualizer: subscription_contextualizer
- authorizer: allow_all_authorizer
- finalizer: jwt
config:
claims: |
{"foo": "bar"}
- finalizer: bla
config:
headers:
foo-bar: bla
- finalizer: blabla
# no on_error (reuses default)