Skip to content

chore: implement user link claims as a typed golang object #15502

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

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Nov 13, 2024

Move claims from a debug column to an actual typed column to be used. This does not actually change anything, it just adds some Go typing I can build off of more easily.

Supports coder/internal#210

@Emyrk Emyrk force-pushed the stevenmasley/user_link_claims branch from f6c7db7 to 84f84a5 Compare November 14, 2024 14:34
@Emyrk Emyrk requested a review from f0ssel November 14, 2024 15:02
@@ -57,7 +56,7 @@ func TestUserLinks(t *testing.T) {
OAuthRefreshToken: "refresh",
UserID: link.UserID,
LoginType: link.LoginType,
DebugContext: json.RawMessage("{}"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we throw in a value here and check the output below just to make sure it gets marshalled and unmarshalled correctly?

@Emyrk Emyrk merged commit b6d0b77 into main Nov 14, 2024
26 checks passed
@Emyrk Emyrk deleted the stevenmasley/user_link_claims branch November 14, 2024 16:05
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.

2 participants