Skip to content

Add unit tests for oidc-EmailFromIDToken method#413

Merged
dlorenc merged 1 commit into
sigstore:mainfrom
elizabetht:main
Feb 17, 2022
Merged

Add unit tests for oidc-EmailFromIDToken method#413
dlorenc merged 1 commit into
sigstore:mainfrom
elizabetht:main

Conversation

@elizabetht
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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