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
Describe the bug
TokenManager does not re-init expired sessions.
To Reproduce
0) Init basyx secured
Here is keycloak config
TokenManager t = new TokenManager("<endpoint>", new PasswordCredentialAccessTokenProvider(new PasswordCredential("<user>", "<pass>"), new ClientCredential("<client-id>", "<client-secret>")));
get a token
t.getAccessToken();
Start getting tokens every max idle time, e.g., every 2 minutes
while(true){
t.getAccessToken();
Sleep(120);
}
wait until session timeouts, e.g., 10 hours
t.getAccessToken();
throws an error AccessTokenRetreivalException
As far as i see the only way ATM is to careate a new TokenManager with a new new.
Expected behavior
Eiter some less-generic Exception, better a pro-active token/session refresh.
BaSyx (please complete the following information):
Describe the bug
TokenManager does not re-init expired sessions.
To Reproduce
0) Init basyx secured
Here is keycloak config
get a token
Start getting tokens every max idle time, e.g., every 2 minutes
wait until session timeouts, e.g., 10 hours
throws an error AccessTokenRetreivalException
As far as i see the only way ATM is to careate a new TokenManager with a new new.
Expected behavior
Eiter some less-generic Exception, better a pro-active token/session refresh.
BaSyx (please complete the following information):
Screenshots
The text was updated successfully, but these errors were encountered: