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

Move claims from a `debug` column to an actual typed column to be used.
This does not functionally change anything, it just adds some Go typing to build
on.
This commit is contained in:
Steven Masley
2024-11-14 10:05:44 -06:00
committed by GitHub
parent 6b1fafbacc
commit b6d0b7713a
19 changed files with 105 additions and 65 deletions
+2 -2
View File
@@ -2892,8 +2892,8 @@ type UserLink struct {
OAuthAccessTokenKeyID sql.NullString `db:"oauth_access_token_key_id" json:"oauth_access_token_key_id"`
// The ID of the key used to encrypt the OAuth refresh token. If this is NULL, the refresh token is not encrypted
OAuthRefreshTokenKeyID sql.NullString `db:"oauth_refresh_token_key_id" json:"oauth_refresh_token_key_id"`
// Debug information includes information like id_token and userinfo claims.
DebugContext json.RawMessage `db:"debug_context" json:"debug_context"`
// Claims from the IDP for the linked user. Includes both id_token and userinfo claims.
Claims UserLinkClaims `db:"claims" json:"claims"`
}
// Visible fields of users are allowed to be joined with other tables for including context of other resources.