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: support string "true" in SSO for Jumpcloud email_verified field #12257 #12318

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

sonbui00
Copy link
Member

@sonbui00 sonbui00 commented Dec 5, 2023

Fixes #12257

Motivation

  • Support Jumpcloud

Modifications

  • Support "email_verified" field as string "true"

Verification

  • Unit test included

Beyond this PR

Signed-off-by: Son Bui <sonbv00@gmail.com>
@sonbui00 sonbui00 marked this pull request as ready for review December 5, 2023 01:28
@sonbui00 sonbui00 self-assigned this Dec 5, 2023
@sarabala1979 sarabala1979 merged commit 3931e59 into argoproj:main Jan 16, 2024
27 checks passed
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Feb 27, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Feb 28, 2024
…oj#12318)

Signed-off-by: Son Bui <sonbv00@gmail.com>
Signed-off-by: Isitha Subasinghe <isubasinghe@student.unimelb.edu.au>
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Mar 12, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 6, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 7, 2024
@agilgur5 agilgur5 changed the title fix: SSO with Jumpcloud "email_verified" field #12257 fix: support string "true" in SSO for Jumpcloud email_verified field #12257 May 18, 2024
@@ -12,7 +12,7 @@ type Claims struct {
jwt.Claims
Groups []string `json:"groups,omitempty"`
Email string `json:"email,omitempty"`
EmailVerified bool `json:"email_verified,omitempty"`
EmailVerified bool `json:"-"`
Copy link

@agilgur5 agilgur5 May 18, 2024

Choose a reason for hiding this comment

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

Hmm I'm thinking the more correct way of handling this may have been to use a custom type that handles unmarshaling for this scenario like in this SO question's answers

@agilgur5 agilgur5 changed the title fix: support string "true" in SSO for Jumpcloud email_verified field #12257 fix: support string "true" in SSO for Jumpcloud email_verified field #12257 Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSO with Jumpcloud email_verified causes failure to authenticate
3 participants