Files
mattermost/api/v4
23d83b74d2 MM-65723 Validate user auth update requests (#36749)
* MM-65723 validate user auth updates

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* MM-65723 assert auth update persistence

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* MM-65723 move auth service allowlist into model

Extracts the allowlist used by isValidUpdateUserAuthRequest into a new
model.IsValidUserAuthService helper next to IsSSOUser/IsOAuthUser so the
auth service list lives next to its constants. Adds a unit test for the
helper.

* go mod tidy

Drops stale github.com/bep/imagemeta v0.12.0 entry left in go.sum.

* Address PR feedback: 2 items resolved, 1 declined

* Address PR feedback: 1 items resolved, 1 declined

* Address PR feedback: 1 items resolved, 3 declined

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Julien Tant <julien@craftyx.fr>
2026-05-28 09:30:44 +00:00
..