I'm trying to use keycloak to get access tokens,
but I get the error Token is expired
when trying to use the tokens issued by keycloak
For example, if I get a token using curl:
curl -u account:___mysecret___ -k
-d "grant_type=password&username=testuser&password=__some__pass"
-H "Content-Type:application/x-www-form-urlencoded"
http://localhost:8080/auth/realms/testRealm/protocol/openid-connect/token
and decode the returned token using jwt.io, I can see that the exp date is yesterday's date.
how do I get usable access tokens?