Skip to content

Commit

Permalink
docs: Fix commands for testing jwt based routing (#3243)
Browse files Browse the repository at this point in the history
* Update http-routing.md

Fix commands for testing jwt based routing.

Signed-off-by: Fuyuan Bie <9142170+biefy@users.noreply.github.com>

* Update latest http-routing.md

Signed-off-by: Fuyuan Bie <9142170+biefy@users.noreply.github.com>

---------

Signed-off-by: Fuyuan Bie <9142170+biefy@users.noreply.github.com>
  • Loading branch information
biefy authored Apr 23, 2024
1 parent 08c4fdf commit 35c6891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/content/en/latest/tasks/traffic/http-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/
Test routing to the `foo-svc` backend by specifying a JWT Token with a claim `name: John Doe`.

```shell
curl -sS -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
curl -sS -H "Host: foo.example.com" -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/login" | jq .pod
"foo-backend-6df8cc6b9f-fmwcg"
```

Expand All @@ -217,7 +217,7 @@ TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/
Test HTTP routing to the `bar-svc` backend by specifying a JWT Token with a claim `name: Tom`.

```shell
curl -sS -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
curl -sS -H "Host: bar.example.com" -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
"bar-backend-6688b8944c-s8htr"
```

Expand Down
4 changes: 2 additions & 2 deletions site/content/en/v1.0.1/tasks/traffic/http-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/
Test routing to the `foo-svc` backend by specifying a JWT Token with a claim `name: John Doe`.

```shell
curl -sS -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
curl -sS -H "Host: foo.example.com" -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/login" | jq .pod
"foo-backend-6df8cc6b9f-fmwcg"
```

Expand All @@ -217,7 +217,7 @@ TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/
Test HTTP routing to the `bar-svc` backend by specifying a JWT Token with a claim `name: Tom`.

```shell
curl -sS -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
curl -sS -H "Host: bar.example.com" -H "Authorization: Bearer $TOKEN" "http://${GATEWAY_HOST}/" | jq .pod
"bar-backend-6688b8944c-s8htr"
```

Expand Down

0 comments on commit 35c6891

Please sign in to comment.