Skip to content

feat: support full-format identity tokens on GCE - #9680

Open
Hectorhammett wants to merge 1 commit into
mainfrom
gce-full-format
Open

feat: support full-format identity tokens on GCE#9680
Hectorhammett wants to merge 1 commit into
mainfrom
gce-full-format

Conversation

@Hectorhammett

Copy link
Copy Markdown
Collaborator

Adds an optional $idTokenFormat constructor argument to GCECredentials. When a target audience is set, passing 'full' appends '&format=full' to the metadata server identity request so the returned ID token includes the full VM instance payload (for example, the authorized party's email), matching the behavior of the Python auth library. The value is validated to 'standard' or 'full'.

Fixes googleapis/google-auth-library-php#526

This is a mirror of:
googleapis/google-auth-library-php#681

Adds an optional $idTokenFormat constructor argument to GCECredentials. When
a target audience is set, passing 'full' appends '&format=full' to the metadata
server identity request so the returned ID token includes the full VM instance
payload (for example, the authorized party's email), matching the behavior of
the Python auth library. The value is validated to 'standard' or 'full'.

Fixes #526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants