hkspot.blogg.se

Jwt online decoder
Jwt online decoder





jwt online decoder jwt online decoder
  1. JWT ONLINE DECODER HOW TO
  2. JWT ONLINE DECODER SOFTWARE
  3. JWT ONLINE DECODER CODE

Feel free to leave some love materialized as GitHub stars for me. This is the result of my today's adventure trying to make everything nicer for me and my fellow devs. Want colors? Use it with -c and it will be 150% better.Īnd that's it. Just pass the token as an argument jwt-decode -t "ABeautifulToken" or pipe it in echo "ABeautifulToken" | jwt-decode and it will do the work. This JWT tool allows to decode token directly in your browser.Your token is decoder only on client side, it is not sent to our server. In the future, I'll be adding at least Ubuntu snaps support.Īs my requirements were pretty simple the usage of the application is also simple. There's also a GitHub action for releasing GO applications ( ) that worked perfectly for me. For now, I'll just release the binaries and the users just need to download them and use them as they want.

JWT ONLINE DECODER SOFTWARE

So many package managers and intricate ways maintainers have decided they want their software to be installed. There are tons of ways to release applications. I was a bit lazy here, so I just added some tests to check that the main methods are still doing what they are supposed to do, added a GitHub action to build and test the application every time someone pushes it or creates a pull request, and that is it. Then added optional colorization because life is better with colors, so I used TylerBrock/colorjson to optionally output colorized text.

JWT ONLINE DECODER CODE

If not specified will try to read it from stdin.")Īnd some code to read from stdin if the token was not specified using the command line argument. TokenArgument := flag.String("t", "", "Token to decode. I added an argument -t to pass the token to my application: This decodes my token without problems and places all the claims into a GO map structure which I can later marshal as JSON.Įnter fullscreen mode Exit fullscreen mode I ended up searching for a nice library to do all the work for me and found go-jose. The binaries are a bit "fat", but let's face it: Storage is already pretty cheap and most people will just not care about a couple of megabytes. One of the main reasons why I love to use GO is because I can build my applications for almost any platform/architecture. Decoding is already done by a lot of libraries, I just needed to pick one and wrap everything in a nice GO CLI interface. I would love to colorize the output, but that's completely optional.Īnd out of this need, I got my Saturday project on. I need one application I can push a token and it will output formatted JSON. The requirements were pretty straight forward.

JWT ONLINE DECODER HOW TO

I know for sure they are out there, but at the time I was reading this post on Reddit about how to get the downloads limit on DockerHub I could not find any of them. Probably there are tens of applications to do this.







Jwt online decoder