Description
When universe domain is set and GoogleCredentialsProvider returns a ServiceAccountJwtAccessCredentials, the subsequent validate step will fail with error: The configured universe domain (<some universe domain>) does not match the universe domain found in the credentials (googleapis.com). If you haven't configured the universe domain explicitly,
googleapis.com is the default.
. This is likely caused by universe domain not implemented in the ServiceAccountJwtAccessCredentials
class, so ServiceAccountJwtAccessCredentials
returns default universe domain but resolvedUniverseDomain
returns the universe domain set by the user: https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/rpc/EndpointContext.java#L167-L169C10