Replies: 4 comments
-
I think a JWT security guide would be good to publish along with Hanko. The key things to look out for are to not allow the More details here: https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-bad-standard-that-everyone-should-avoid |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks a lot for your thoughts and the links. We've been thinking about this for a while now. Our current plans are that we'll rework sessions and introduce standard session management and session tokens at some point in the near future. We'll probably leave the current JWT mechanism in place alongside the new system and provide guidance how all this goes together and when to use what and how. |
Beta Was this translation helpful? Give feedback.
-
They are usually expired tokens with a short validity period. Refresh token: The refresh token is used to generate a new access token. Typically, if the access token has an expiration date, once it expires, the user would have to authenticate again to obtain an access token. https://github.com/teamhanko/hanko/blob/6761f4b6e700ebfc19b28f35cb330dc6314b03d5/CONTRIBUTING. |
Beta Was this translation helpful? Give feedback.
-
Just started on my hanko journey. Authentication of a user.Tell me who they are The perfect thing for me is the id_token. Who is the user.
The current code I have seen doesn't have the user linking to N number of third party idps. Need that. Just because a user has a link to a thirdparty IDP doesn't mean that the user actually exists anymore in the third_party IDP. What I do with that I have my own OAuth2 service that has a token-exchange grant_type. I exchange the id_token for access_tokens. To do this I need to know the following. That proves to me that this user exists in context of the third_party idp. I don't know if hanko is currently issuing id_tokens. |
Beta Was this translation helpful? Give feedback.
-
There is a somewhat (in)famous blog post which addresses this topic: http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/
Some people seem to take it a little farther: https://gist.github.com/samsch/0d1f3d3b4745d778f78b230cf6061452
What is the recommendation from Hanko? Should the JWT returned by Hanko be treated essentially as a session, or should it be treated as a short-lived token in order to set up a session with a session id?
Beta Was this translation helpful? Give feedback.
All reactions