forked from traefik-plugins/traefik-jwt-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.traefik.yml
34 lines (30 loc) · 1.06 KB
/
.traefik.yml
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
displayName: JWT Access Policy
type: middleware
import: github.com/team-carepay/traefik-jwt-plugin
summary: Verifies JWT token. Supports RSA/DSA/HMAC. Support fetching keys from JWKS endpoint. Supports Open Policy Agent (OPA) for validating the request.
iconPath: jwt.png
testData:
OpaUrl: http://localhost:8181/v1/data/example
OpaAllowField: allow
OpaBody: true
PayloadFields:
- exp
Required: true
Keys:
- |
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnzyis1ZjfNB0bBgKFMSv
vkTtwlvBsaJq7S5wA+kzeVOVpVWwkWdVha4s38XM/pa/yr47av7+z3VTmvDRyAHc
aT92whREFpLv9cj5lTeJSibyr/Mrm/YtjCZVWgaOYIhwrXwKLqPr/11inWsAkfIy
tvHWTxZYEcXLgAXFuUuaS3uF9gEiNQwzGTU1v0FqkqTBr4B8nW3HCN47XUu0t8Y0
e+lf4s4OxQawWD79J9/5d3Ry0vbV3Am1FtGJiJvOwRsIfVChDpYStTcHTCMqtvWb
V6L11BWkpzGXSW4Hv43qa+GSYOD2QU68Mb59oSk2OB+BtOLpJofmbGEGgvmwyCI9
MwIDAQAB
-----END PUBLIC KEY-----
OpaHeaders:
X-Allowed: allow
JwtHeaders:
X-Subject: sub
OpaResponseHeaders:
X-Allowed: allow
OpaHttpStatusField: allow_status_code