| 199 | } |
| 200 | |
| 201 | type OrganizationSyncSettings struct { |
| 202 | // Field selects the claim field to be used as the created user's |
| 203 | // organizations. If the field is the empty string, then no organization updates |
| 204 | // will ever come from the OIDC provider. |
| 205 | Field string `json:"field"` |
| 206 | // Mapping controls how organizations returned by the OIDC provider get mapped |
| 207 | Mapping map[string][]uuid.UUID `json:"mapping"` |
| 208 | // AssignDefault will ensure all users that authenticate will be |
| 209 | // placed into the default organization. This is mostly a hack to support |
| 210 | // legacy deployments. |
| 211 | AssignDefault bool `json:"assign_default"` |
| 212 | } |
| 213 | |
| 214 | func (s *OrganizationSyncSettings) Set(v string) error { |
| 215 | legacyCheck := make(map[string]any) |
nothing calls this directly
no outgoing calls
no test coverage detected