Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit de44516

Browse files
Update doc [skip ci].
1 parent 06f3d00 commit de44516

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ security:
5555
main:
5656
stateless: true
5757
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`.
6364
```
6465
6566
In case your application have multi issuers:
@@ -69,11 +70,12 @@ In case your application have multi issuers:
6970
main:
7071
stateless: true
7172
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]
73+
rules:
74+
- issuer: issuer_1
75+
origin_token_headers: [authorization]
76+
- issuer: issuer_2
77+
user_identifier_claim: aud
78+
base64_headers: [x-istio-jwt-payload]
7779
#....
7880
```
7981

@@ -82,7 +84,7 @@ In case your application have multi issuers:
8284
```shell
8385
#!/bin/bash
8486

85-
# Generate mock JWT token forwarded by Istio sidecar
87+
#Generate mock JWT token forwarded by Istio sidecar
8688

8789
payload='{"issuer":"issuer_1", "sub": "test"}';
8890
base64_payload=$(echo -n $payload | base64 -);

0 commit comments

Comments
 (0)