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

Add unit tests for oidc-EmailFromIDToken method #413

Merged
merged 1 commit into from Feb 17, 2022
Merged

Add unit tests for oidc-EmailFromIDToken method #413

merged 1 commit into from Feb 17, 2022

Conversation

elizabetht
Copy link
Contributor

Signed-off-by: Elizabeth Thomas email2eliza@gmail.com

Summary

Adding unit tests for EmailFromIDToken method in oauthflow.oidc

Ticket Link

Fixes #405

Release Note


Copy link
Contributor

@nsmith5 nsmith5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fantastic! Congrats on your first contribution to Fulcio 🥇

"unsafe"
)

// reflect hack because "claims" field is unexported by oidc IDToken
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe link to the upstream issue about exporting those fields in case we can remove this once it gets closed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the link to the PR opened in the upstream project - coreos/go-oidc#329

Signed-off-by: Elizabeth Thomas <elizabeth.thomas@target.com>
@dlorenc dlorenc merged commit 1ebcf1c into sigstore:main Feb 17, 2022
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.

Add unit tests for oauthflow.EmailFromIDToken
3 participants