Commit Graph

5 Commits

Author SHA1 Message Date
Rory Powell 45880f2c28 Prevent showing user exists for password disabled actions 2023-03-01 14:49:44 +00:00
Rory Powell 1b041c41c3
Prevent SSO users from setting / resetting a password (#9672)
* Prevent SSO users from setting / resetting a password

* Add support for ENABLE_SSO_MAINTENANCE_MODE

* Add typing to self api and build out user update sdk

* Integrate sso checks with user sdk. Integrate user sdk with self api

* Test fixes

* Move self update into SDK

* Lock down maintenance mode to admin user

* Fix typo

* Add health status response and return type signature to accounts.getStatus

* Remove some unnecessary comments

* Make sso save user function non optional

* Remove redundant check on sso auth details provider

* Update syncProfilePicture function name to getProfilePictureUrl

* Update packages/worker/src/sdk/users/events.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Add ENABLE_EMAIL_TEST_MODE flag

* Fix for logging in as sso user when existing user has password already

* Hide password update and force reset from ui for sso users

* Always disable sso maintenance mode in cloud

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-02-21 08:23:53 +00:00
adrinr 81b5a615b8 Fix worker tests 2023-01-27 17:59:14 +00:00
Rory Powell 80b823f6cf Test fixes 2022-11-11 15:43:41 +00:00
Rory Powell a519eb0cdc update bulk create and bulk delete backend 2022-08-25 19:41:47 +01:00