mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: include merged claims into the database (#15570)
Merging happens before IDP sync. Storing this will make some SQL queries much simplier.
This commit is contained in:
@ -214,6 +214,9 @@ func (p AgentIDNamePair) Value() (driver.Value, error) {
|
||||
type UserLinkClaims struct {
|
||||
IDTokenClaims map[string]interface{} `json:"id_token_claims"`
|
||||
UserInfoClaims map[string]interface{} `json:"user_info_claims"`
|
||||
// MergeClaims are computed in Golang. It is the result of merging
|
||||
// the IDTokenClaims and UserInfoClaims. UserInfoClaims take precedence.
|
||||
MergedClaims map[string]interface{} `json:"merged_claims"`
|
||||
}
|
||||
|
||||
func (a *UserLinkClaims) Scan(src interface{}) error {
|
||||
|
Reference in New Issue
Block a user