Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensures GCE metadata sets email field for ID tokens #874

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Jan 16, 2020

Fixes #792 (comment) by adding format=full onto the metadata request.

The GCE metadata server in particular does not populate the email field of the ID Token JWT without it.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 16, 2020
@codecov
Copy link

codecov bot commented Jan 16, 2020

Codecov Report

Merging #874 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #874   +/-   ##
=======================================
  Coverage   90.89%   90.89%           
=======================================
  Files          19       19           
  Lines        4152     4152           
  Branches      445      445           
=======================================
  Hits         3774     3774           
  Misses        372      372           
  Partials        6        6
Impacted Files Coverage Δ
src/auth/computeclient.ts 97.26% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2053228...3148cd2. Read the comment docs.

@bcoe bcoe merged commit e45b73d into googleapis:master Jan 16, 2020
@bshaffer bshaffer deleted the fix-gce-id-tokens-for-iap branch January 17, 2020 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IAP rejects requests from other GAE
4 participants