oc login failing intermittently

Solution Verified - Updated -

Issue

  • When trying to login the cluster, it fails intermittently:
# oc login -u <username> -p <passwd> --server=https://10.xy.y.z:6443  --insecure-skip-tls-verify=true
error: invalid_grant The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

Environment

  • Openshift Container Platform
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content