IdentityPoolCredential does not work for text formatted credential source #815
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.
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please include as much information as possible:
subject_token_field_name is only valid for
CredentialFormatType.JSON
, but is also run onCredentialFormatType.TEXT
which cause it to throw the exception:google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/IdentityPoolCredentials.java
Lines 139 to 146 in 5688837
In the Python SDK, this line is if-checked to run only with JSON:
https://github.com/googleapis/google-auth-library-python/blob/3c3fbf40b07e090f2be7fac5b304dbf438b5cd6c/google/auth/identity_pool.py#L158-L165
Stack trace
The text was updated successfully, but these errors were encountered: