UnauthenticationException when customizing universe-domain when quota project id is set #3256
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Reproduced locally with the following code snippet:
Which results in the following stacktrace despite the user configured universe domain matching the underlying credential's universe domain.
Adding a breakpoint in the
EndpointContext#validateUniverseDomain()
method shows that the getUniverseDomain() is called on QuotaProjectIdHidingCredentials which is a wrapper around the configured credentials implementation. At the moment, this class always returnsgoogleapis.com
instead of relying on universe domain configured in the wrapped Credentials class.
Proposed solution: Expose getUniverseDomain() of the wrapped credentials class in
QuotaProjectIdHidingCredentials
The text was updated successfully, but these errors were encountered: