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: 🐛 Fix serializing client secrets in oidc auth methods #1698

Merged
merged 1 commit into from
May 26, 2023

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented May 26, 2023

Description

We are currently serializing client secrets in the OIDC auth methods form even if they're null. Annotated it as a secret so it won't get serialized if it doesn't exist

See this thread for more details.

@ZedLi ZedLi self-assigned this May 26, 2023
@ZedLi ZedLi requested a review from a team as a code owner May 26, 2023 15:41
@vercel
Copy link

vercel bot commented May 26, 2023

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 May 26, 2023 5:22pm
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 5:22pm
boundary-ui-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 5:22pm

@jimlambrt
Copy link
Collaborator

ty!

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Would the isSecret attribute option work for this?

@ZedLi
Copy link
Collaborator Author

ZedLi commented May 26, 2023

Would the isSecret attribute option work for this?

I mentioned this part as part of the comment but no because the isNestedSecret assumes we are serializing it under a secrets object but I believe this route currently assumes it's just under attributes still.

My mistake, I wasn't aware isSecret existed and just assumed we only had isNestedSecret, updated!

@ZedLi ZedLi merged commit 2a11d75 into main May 26, 2023
@ZedLi ZedLi deleted the bugfix/fix-oidc-client-secret branch May 26, 2023 18:15
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.

5 participants