micahhausler / k8s-oidc-helper

Helper tool for authenticating to Kubernetes using Google's OpenID Connect
MIT License
201 stars 86 forks source link

Unable to connect to the server: failed to refresh token: oauth2: cannot fetch token: 400 Bad Request #23

Open jurgenweber opened 6 years ago

jurgenweber commented 6 years ago

All of my users are 'all of a sudden' seeing this when trying to use kubectl

Unable to connect to the server: failed to refresh token: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

Any ideas?

zegl commented 6 years ago

Hi @jurgenweber,

Which OIDC provider are you using? Google?

jurgenweber commented 6 years ago

yeah...... I somehow got it working again.... I think it was a google problem. tbh, I have no idea.