Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect decoding command in developer guide #4240

Closed
juwon8891 opened this issue Sep 14, 2024 · 1 comment · Fixed by #4241
Closed

Incorrect decoding command in developer guide #4240

juwon8891 opened this issue Sep 14, 2024 · 1 comment · Fixed by #4241
Labels

Comments

@juwon8891
Copy link
Contributor

Description:
The developer guide documentation incorrectly states the decoding command. The example for decoding JWT tokens includes an unnecessary "-" in the base64 command. The correct command should omit this extra argument.

For more details, refer to the developer guide.

AS-IS

TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/with-different-claim.jwt -s) && echo "$TOKEN" | cut -d '.' -f2 - | base64 --decode -

TO-BE

TOKEN=$(curl https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/with-different-claim.jwt -s) && echo "$TOKEN" | cut -d '.' -f2 | base64 --decode
@zirain
Copy link
Member

zirain commented Sep 14, 2024

cc @zhaohuabing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants