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
{{ message }}
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-12
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,13 @@ security:
55
55
main:
56
56
stateless: true
57
57
istio_jwt_authenticator:
58
-
- issuer: issuer_1 # Required
59
-
user_identifier_claim: sub #Default is `sub` claim
60
-
origin_token_headers: [authorization] #Required at least once of `origin_token_headers`, `origin_token_query_params` or `base64_headers`. Use this option when your Istio JWTRule CRD using `forwardOriginalToken`.
61
-
origin_token_query_params: [token] #Use this option when your Istio JWTRule CRD using `forwardOriginalToken` and your JWT token in query param.
62
-
base64_headers: [x-istio-jwt-payload] # Use this option when your Istio JWTRule CRD using `outputPayloadToHeader`.
58
+
rules:
59
+
- issuer: issuer_1 # Required
60
+
user_identifier_claim: sub #Default is `sub` claim
61
+
origin_token_headers: [authorization] #Required at least once of `origin_token_headers`, `origin_token_query_params` or `base64_headers`. Use this option when your Istio JWTRule CRD using `forwardOriginalToken`.
62
+
origin_token_query_params: [token] #Use this option when your Istio JWTRule CRD using `forwardOriginalToken` and your JWT token in query param.
63
+
base64_headers: [x-istio-jwt-payload] # Use this option when your Istio JWTRule CRD using `outputPayloadToHeader`.
64
+
prefix: "Bearer "#Token prefix of origin token passthrough by default blank ("") if not set.
63
65
```
64
66
65
67
In case your application have multi issuers:
@@ -69,11 +71,13 @@ In case your application have multi issuers:
69
71
main:
70
72
stateless: true
71
73
istio_jwt_authenticator:
72
-
- issuer: issuer_1
73
-
origin_token_headers: [authorization]
74
-
- issuer: issuer_2
75
-
user_identifier_claim: aud
76
-
base64_headers: [x-istio-jwt-payload]
74
+
rules:
75
+
- issuer: issuer_1
76
+
origin_token_headers: [authorization]
77
+
prefix: "Bearer "
78
+
- issuer: issuer_2
79
+
user_identifier_claim: aud
80
+
base64_headers: [x-istio-jwt-payload]
77
81
#....
78
82
```
79
83
@@ -82,15 +86,15 @@ In case your application have multi issuers:
82
86
```shell
83
87
#!/bin/bash
84
88
85
-
#Generate mock JWT token forwarded by Istio sidecar
89
+
#Generate mock JWT token forwarded by Istio sidecar
thrownewInvalidConfigurationException(sprintf('`%s`: at least once `origin_token_headers`, `origin_token_query_params`, `base64_headers` should be config when using', $this->getKey()));
0 commit comments