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 ComputeIdentitySource::token() #260

Merged
merged 2 commits into from
May 1, 2024

Conversation

h-michael
Copy link
Contributor

@h-michael h-michael commented May 1, 2024

There are two issues.

1. Can't pass JWT validation

This issue is almost the same with this issue.

Solution

Set audience to pass the validation

2. ID Token claims doesn't include email field.

Solution

Add format=full to query parameter.
If this parameter is missing, JWT doesn't include email field. Sorry I can't find the official documentation about this specification.
However, I found Golang client implementation.

@yoshidan yoshidan added the safe to test safe to test label May 1, 2024
@yoshidan yoshidan merged commit 44f63ec into yoshidan:main May 1, 2024
6 checks passed
@h-michael h-michael deleted the set-audience-to-get-id-token branch May 1, 2024 14:01
@gwik
Copy link
Contributor

gwik commented May 5, 2024

Thanks for the fix.

@yoshidan could you make a bugfix release please?

@yoshidan
Copy link
Owner

yoshidan commented May 7, 2024

@gwik
I published new version

@gwik
Copy link
Contributor

gwik commented May 7, 2024

Thank you! much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants