You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/envoy/config/filter/http/jwt_authn/v2alpha/README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,3 +29,38 @@ If a custom location is desired, `from_headers` or `from_params` can be used to
29
29
## HTTP header to pass successfully verified JWT
30
30
31
31
If a JWT is valid, its payload will be passed to the backend in a new HTTP header specified in `forward_payload_header` field. Its value is base64 encoded JWT payload in JSON.
32
+
33
+
34
+
## Further header options
35
+
36
+
In addition to the `name` field, which specifies the HTTP header name,
37
+
the `from_headers` section can specify an optional `value_prefix` value, as in:
38
+
39
+
```yaml
40
+
from_headers:
41
+
- name: bespoke
42
+
value_prefix: jwt_value
43
+
```
44
+
45
+
The above will cause the jwt_authn filter to look for the JWT in the `bespoke` header, following the tag `jwt_value`.
46
+
47
+
Any non-JWT characters (i.e., anything _other than_ alphanumerics, `_`, `-`, and `.`) will be skipped,
48
+
and all following, contiguous, JWT-legal chars will be taken as the JWT.
49
+
50
+
This means all of the following will return a JWT of `eyJFbnZveSI6ICJyb2NrcyJ9.e30.c2lnbmVk`:
0 commit comments