Why is JwtClaims.newBuilder() package private? #349
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I am trying to override the audience with my custom audience claim. I found the method jwtWithClaims in ServiceAccountJwtAccessCredentials. But this method seems useless because I can't actually create any JwtClaims since the builder is not accessible from outside package.
Environment details
Steps to reproduce
Credentials credentials = ServiceAccountJwtAccessCredentials.fromStream(credsStream, URI.create(AUDIENCE)).jwtWithClaims(???);
How do I pass a JwtClaim into the ??? Or am I doing this wrong?
Stacktrace
Code snippet
External references such as API reference guides used
Any additional information below
Following these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: