You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While performing some tests on a long living session with strict session validation enabled, we noticed that requests started to fail after some point. We believe the reason was the following:
The client probably closed the TCP connection after sending a request. This can happen if a browser sends a request and gets immediately interrupted, e.g., due to a refresh.
The server detected the closed connection and send a cancellation signal to the context.
The goroutine that was querying the user info got cancelled midway.
The UserInfo endpoint is called with an OAuth2 access token. The access
token expires after a while and then we must renew it with the refresh
token. Update the code so that it takes care of renewing the access
token.
Closes#32
Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com>
The UserInfo endpoint is called with an OAuth2 access token. The access
token expires after a while and then we must renew it with the refresh
token. Update the code so that it takes care of renewing the access
token.
Closes#32
Github-PR: #31
Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com>
While performing some tests on a long living session with strict session validation enabled, we noticed that requests started to fail after some point. We believe the reason was the following:
go-oidc
library does not permit this (see: userinfo: expose http response information to library callers coreos/go-oidc#248).We should properly detect the reason why the user info call fails, and delete the session only when we are positive that the token has expired.
The text was updated successfully, but these errors were encountered: