-
Notifications
You must be signed in to change notification settings - Fork 42
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
Silent token refreshing #129
Comments
Yes, this is indeed the plan; it’s just not implemented yet in the OIDC
library we currently use.
|
Just so I know which issues to subscribe to: is this the blocker? nodeSolidServer/oidc-rp#4 |
@Vinnl - Ok, so, there's several moving parts here :) Server-side:
Client-side:
Protocol-side:
Does that make sense? So, yes, oidc-rp/4 is the blocker (if you're planning to use it with Pod Server), but I don't think resources have been allocated to it? |
At least, that made things a lot clearer to me. Thank you @dmitrizagidulin |
Thanks @dmitrizagidulin, that's very clear. Short other question: is it theoretically already possible for solid-auth-client to know when the token has expired? Even if we're not able to refresh the token yet, it'd be great to at least be able to let the user know they're logged out, rather than things just suddenly no longer working. |
It would be, yeah. |
The other option would be to put the check for expiration in the |
Hmm, so I've done some digging here, but it doesn't seem like this should need extra logic in Thus, it should return |
Not everything is implemented in the underlying OIDC library, and as @dmitrizagidulin wrote above, not likely to happen soon. |
I haven't looked closely, but I suspect it has to do with the difference in lifetime between the inner ID Token (really, just a signed credential) and the outer PoP token. Both have different expiration times that the auth client has to consider, and the |
Hi guys,
This issue might be somehow related to :
Giving a short lifespan to the
ID token
is a security feature to reduce the vulnerability surface, but as @dmitrizagidulin said it is inversely proportional to user convenience.We are currently experiencing this pain in our app. So far our only option is to increase the lifetime of the issued tokens, which is not the recommended way to go.
How about silent token refreshing ?
Brock Allen, the author of
oidc-client-js
seems to think it is acceptable in terms of security. I am having a hard time assessing if it is.It is on the roadmap ?
If it isn't, how do we intend to make long sessions work with security.
Many thanks for your insight
The text was updated successfully, but these errors were encountered: