gcloud auth print-identity-token
ERROR: (gcloud.auth.print-identity-token) No identity token can be obtained from the current credentials.
On gcloud auth list
, I can see my account as active account(user account).
I am trying this on cloud shell.
Note - This was working earlier, I was able to generate the JWT Token from this command.
Hi Kumar Shaswat,
Today I have tried this again with Google Cloud SDK 310.0.0
and found in Cloud Shell I can run the command$ gcloud auth print-identity-token
.
Thus requesting you to check the $ gcloud version
and retry it.