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

Allow passing a JWT as URI fragment #663

Open
guillp opened this issue Aug 14, 2023 · 3 comments
Open

Allow passing a JWT as URI fragment #663

guillp opened this issue Aug 14, 2023 · 3 comments
Assignees

Comments

@guillp
Copy link

guillp commented Aug 14, 2023

I would like to be able to pass JWT tokens in URI fragments, like this:
https://jwt.io/#my.token.here

Which would allow sharing direct links to jwt.io with the token included, instead of instructing colleagues to go to https://jwt.io then paste <my.token.here> in the left text area.
Fragments are not sent to the HTTP server, so a client side code must read that value and use it as the "encoded" token value. Currently, the fragment is ignored.

@Sambego
Copy link
Contributor

Sambego commented Aug 14, 2023

Hey @guillp

You can share links with the a token as the token= query parameter, and the debugger will automatically use it.
eg: https://jwt.io/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkhleSBAZ3VpbGxwIiwiaWF0IjoxNTE2MjM5MDIyfQ.jUC-ZfZ7Xvl9iPMfu2PGRUMOzYtM2KkNEJteSX7qRYs

@Sambego Sambego closed this as completed Aug 14, 2023
@guillp
Copy link
Author

guillp commented Oct 6, 2023

Thanks for pointing that out. The issue is that using a query parameter, the JWT token will be sent to the server, which defeats the purpose of having client side parsing.

@DanOnCall DanOnCall reopened this Jun 18, 2024
@DanOnCall DanOnCall self-assigned this Jun 18, 2024
@DanOnCall
Copy link
Contributor

Howdy, Guillaume! I am one of the recent maintainers for jwt.io and I really like this idea. I'll be exploring it for the next version of the site.

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

No branches or pull requests

3 participants