fleet/server
jacobshandling 8d9ca0eabf
Require a password when changing a user from SSO to password-based authentication (#25843)
## For #24754

- Backend:
- Return an error when a PATCH attempts to update a user's
authentication from SSO to password but doesn't include a password
  - Add checks to integration test.
- Frontend:
- Form error when attempting to switch a user who is currently
SSO-authed to password without a password
- Refactor upstream inherited errors to allow for disabling the form
submission button when errors are present
  - Other improvements to user form validation

**[UI
Demo](https://drive.google.com/file/d/1-BIzCpqu0zjYHf7zxiZL_7kVoE2sLwtx/view?usp=sharing)**
**[API
Demo](https://drive.google.com/file/d/19lQ7Pvfmq3MwEjHw0_r9IoxVuNaSNwGb/view?usp=sharing)**

<img width="994" alt="Screenshot 2025-01-28 at 3 38 11 PM"
src="https://github.com/user-attachments/assets/304f8def-2656-43f7-97e5-8be1fc679814"
/>

<img width="660" alt="Screenshot 2025-01-28 at 3 39 41 PM"
src="https://github.com/user-attachments/assets/77283520-b313-4743-96df-06c55e573496"
/>


- [x] Changes file added for user-visible changes in `changes/`
- [x] Added/updated automated tests
- [ ] A detailed QA plan exists on the associated ticket (if it isn't
there, work with the product group's QA engineer to add it)
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2025-01-30 09:32:11 -08:00
..
authz Added migration and secret variables API. (#24594) 2024-12-10 15:32:51 -06:00
bindata
config Optimize vulnerability host counts (#24914) 2025-01-13 15:44:02 -07:00
contexts Illegal argument errors will no longer be logged at the ERROR level (#25761) 2025-01-27 14:03:38 -06:00
cron
datastore Add "ExcludeFleetMaintainedApps" option to software titles query (#25649) 2025-01-30 11:22:12 -06:00
docs Illegal argument errors will no longer be logged at the ERROR level (#25761) 2025-01-27 14:03:38 -06:00
errorstore
fleet Add "ExcludeFleetMaintainedApps" option to software titles query (#25649) 2025-01-30 11:22:12 -06:00
goose
health
launcher
live_query
logging
mail Utilize custom SMTP domain if set (#25669) 2025-01-28 11:10:52 -05:00
mdm Added util func around semver to allow for custom preprocessing. Upgraded semver lib (#25437) 2025-01-23 10:21:15 -06:00
mock Update label membership by host IDs directly (#25687) 2025-01-23 12:38:57 -08:00
policies
ptr
pubsub
service Require a password when changing a user from SSO to password-based authentication (#25843) 2025-01-30 09:32:11 -08:00
shellquote
sso
test Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
version
vulnerabilities Added util func around semver to allow for custom preprocessing. Upgraded semver lib (#25437) 2025-01-23 10:21:15 -06:00
webhooks
websocket
worker Added signed URLs (#25197) 2025-01-09 12:56:54 -06:00
utils.go Allow opting in users to email verification on login (#24273) 2024-12-05 08:37:10 -06:00
utils_test.go