forIdToken
Returns a credential that gets an ID token for audience from Application Default Credentials.
Throws
if audience is empty.
fun forIdToken(audience: String, key: AuthCredential.ServiceAccount.Credential): AuthCredential.ServiceAccount
Returns a credential that gets an ID token for audience from the service account key.
Throws
if audience is empty.