Skip to content

feat: 🎸 Populate subject for OIDC account name displays #2757

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

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented Mar 31, 2025

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16634

Description

OIDC accounts are guaranteed to have a subject claim which we should display. Currently we only look at email and full_name which are all optional for OIDC claims. In many cases, if there were no claims for these optional claims, OIDC accounts under users would show nothing which is not a good experience.

I also added links to the fields which goes directly to the corresponding auth method and account as we only display accounts under an auth method.

Screenshots (if appropriate)

Before:
image

After:
image

How to Test

Start up boundary dev and navigate to accounts under users. OIDC should display a name and they all should be able to goto the account directly.

Checklist

  • I have added before and after screenshots for UI changes
  • [ ] I have added JSON response output for API changes
  • [ ] I have added steps to reproduce and test for bug fixes in the description
  • [ ] I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

OIDC accounts are guaranteed to have a subject claim which we should
display. Currently we only look at email and full_name which
are all optional for OIDC claims.

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16634
@ZedLi ZedLi self-assigned this Mar 31, 2025
@ZedLi ZedLi requested a review from a team as a code owner March 31, 2025 15:08
Copy link

vercel bot commented Mar 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boundary-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2025 4:58pm
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2025 4:58pm

Copy link
Collaborator

@DhariniJeeva DhariniJeeva left a comment

Choose a reason for hiding this comment

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

looks good to me!

Copy link
Collaborator

@cameronperera cameronperera left a comment

Choose a reason for hiding this comment

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

Nice change!

Copy link
Collaborator

@priya-patel04 priya-patel04 left a comment

Choose a reason for hiding this comment

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

Lgtm!

Copy link
Collaborator

@lisbet-alvarez lisbet-alvarez left a comment

Choose a reason for hiding this comment

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

Thx for fixing this!

Copy link
Collaborator

@calcaide calcaide left a comment

Choose a reason for hiding this comment

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

Thanks for this!! looks much better now 😉

@ZedLi ZedLi merged commit 2db63ae into main Apr 3, 2025
13 checks passed
@ZedLi ZedLi deleted the ICU-16634-allow-user-to-goto-account-details-page-from-users-accounts branch April 3, 2025 17:33
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.

6 participants