SCIMUser is a user in SCIM.
| 80 | |
| 81 | // SCIMUser is a user in SCIM. |
| 82 | type SCIMUser struct { |
| 83 | ID UUID `bun:"id" json:"id"` |
| 84 | Username string `bun:"username" json:"userName"` |
| 85 | ExternalID string `bun:"external_id" json:"externalId"` |
| 86 | Name SCIMName `bun:"name" json:"name"` |
| 87 | DisplayName null.String `bun:"display_name" json:"displayName"` |
| 88 | Emails SCIMEmails `bun:"emails" json:"emails"` |
| 89 | Active bool `bun:"active" json:"active"` |
| 90 | |
| 91 | PasswordHash null.String `bun:"password_hash" json:"password_hash,omitempty"` |
| 92 | |
| 93 | Password string `json:"password,omitempty"` |
| 94 | Schemas SCIMUserSchemas `json:"schemas"` |
| 95 | Meta *SCIMUserMeta `json:"meta"` |
| 96 | |
| 97 | UserID UserID `bun:"user_id" json:"-"` |
| 98 | RawAttributes map[string]interface{} `bun:"raw_attributes" json:"-"` |
| 99 | } |
| 100 | |
| 101 | // Validate checks that external data satisfies the expected invariants. |
| 102 | func (u SCIMUser) Validate() []error { |
nothing calls this directly
no outgoing calls
no test coverage detected