-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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
- OS: any
- Java version: 1.8
- google-auth-library-java version(s): 0.17.1
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
Any relevant stacktrace here.
Code snippet
// I want to put something like
Credentials credentials = ServiceAccountJwtAccessCredentials.fromStream(credsStream, URI.create(AUDIENCE)).jwtWithClaims(JwtClaims.newBuilder().withAudience(AUDIENCE).build());External references such as API reference guides used
- ?
Any additional information below
Following these steps will guarantee the quickest resolution possible.
Thanks!
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.