Skip to content

Commit

Permalink
Update requestauthentication.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-2018 authored Apr 11, 2022
1 parent 80766b5 commit 364bba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module14/istio/authentication/requestauthentication.MD
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ curl 192.168.34.2:31783/headers
TOKEN=eyJhbGciOiJSUzI1NiIsImtpZCI6IkRIRmJwb0lVcXJZOHQyenBBMnFYZkNtcjVWTzVaRXI0UnpIVV8tZW52dlEiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjQ2ODU5ODk3MDAsImZvbyI6ImJhciIsImlhdCI6MTUzMjM4OTcwMCwiaXNzIjoidGVzdGluZ0BzZWN1cmUuaXN0aW8uaW8iLCJzdWIiOiJ0ZXN0aW5nQHNlY3VyZS5pc3Rpby5pbyJ9.CfNnxWP2tcnR9q0vxyxweaF3ovQYHYZl82hAUsn21bwQd9zP7c-LS9qd_vpdLG4Tn1A15NxfCjp5f7QNBUo-KC9PJqYpgGbaXhaGx7bEdFWjcwv3nZzvc7M__ZpaCERdwU7igUmJqYGBYQ51vr2njU9ZimyKkfDe3axcyiBZde7G6dabliUosJvvKOPcKIWPccCgefSj_GNfwIip3-SsFdlR7BtbVUcqR-yv-XOxJ3Uc1MI0tz3uMiiZcyPV7sNCU4KRnemRIMHVOfuvHsU60_GhGbiSFzgPTAa9WTltbnarTbxudb_YEOx12JiwYToeX0DCPb43W1tzIBxgm8NxUg
curl --header "Authorization: Bearer $TOKEN" "192.168.34.2:31783/headers" -s -o /dev/null -w "%{http_code}\n"
```
### requires a token(request without tokwn will return 401)
### requires a token(request without token will return 401)
```
kubectl apply -f - <<EOF
apiVersion: security.istio.io/v1beta1
Expand All @@ -89,4 +89,4 @@ EOF
### only request with valid token will be accepted
```
curl --header "Authorization: Bearer $TOKEN" "192.168.34.2:31783/headers" -s -o /dev/null -w "%{http_code}\n"
```
```

0 comments on commit 364bba1

Please sign in to comment.