could not decode the json of token: json: cannot unmarshal array into Go struct field StandardClaims.aud of type string

11/12/2019

I am getting the error message

error: error: could not get a token from the cache or provider: error while authentication: invalid token and you need to remove the cache: could not decode the json of token: json: cannot unmarshal array into Go struct field StandardClaims.aud of type string

on kubectl when accessing my kubernetes cluster which has authentication through OpenID enabled.

When I delete the local OpenID token, everything will work fine again, but just once. Then the error message comes back.

Any ideas what could be wrong?

Best regards, rforberger

-- Ronny Forberger
kubernetes
openid

0 Answers