Hello,
Here is my problem :
I generate a token (with realm management rights) by calling :
http://localhost:8180/auth/realms/<realm>/protocol/openid-connect/token
If I then call :
It correctly return all the groups of the realm.
Now if I restart Keycloak, with my token still valid (it is not expired), and I call again :
It returns :
{
"error": "HTTP 401 Unauthorized"
}
It this a normal behaviour ?
Why do I get a 401 Unauthorized error when my token is still valid ?
Does Keycloak has some internal stateful infos associated to the token, that are necessary to valid the token, that are lost when the server is restarted ?
Can't we tell it to persist those stateful infos it into DB to avoid the 401 error after a restart ?