-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve the way tokens and logged in users are shown in Keycloak Dev UI #19028
Improve the way tokens and logged in users are shown in Keycloak Dev UI #19028
Conversation
How about we still show the token (so one can copy it if needed) but add a button to decode ? |
Hi @phillip-kruger the original token goes to the clipboard as you have shown. I just did not capture it with the above image. OidcDebugger shows both tokens at the same time in the encoded and decoded form, for example:
where it stacks it all vertically so it looks like as if there is too much info. https://jwt.io/ stacks it horizontally. May be it is the most optimal approach, for example, user presses So I guess I'd either leave it as is or experiment with the jwt.io or oidcdebugger like approach, stack both encoded and decoded views at the same time either horizontally or vertically and see how it feels - but I'm not sure I can do the latter option neatly enough myself :-) Thanks |
OK cool. I can look into doing that side-by-side later. Let merge this :) |
Good morning, Phillip, yes, we can indeed continue improving the way it is presented :-) |
At the moment Keycloak Dev Ui will show an encoded access or ID token in the tokens view which does not bring any extra info to the user - so this PR has the tokens decoded in the token view - showing headers, payload as JSON while keeping the signature encoded. It was also possible to get the user name as part of this refactoring.
It will look like this:
and we can improve it further