1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00
budibase/packages/backend-core
Rory Powell cacf275a99 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
..
__mocks__ File authentication using presigned URLs (#8883) 2022-12-15 11:35:22 +00:00
src Prevent SSO users from setting / resetting a password (#9672) 2023-02-21 08:23:53 +00:00
tests Prevent SSO users from setting / resetting a password (#9672) 2023-02-21 08:23:53 +00:00
.gitignore Merge develop 2022-09-28 08:56:45 +01:00
jest-testcontainers-config.js Remove redundant env from jestTestcontainersConfigGenerator 2023-02-01 11:49:25 +00:00
jest.config.ts Renamings 2023-02-03 19:08:45 +00:00
LICENSE Changing directory. 2022-01-10 19:30:35 +00:00
package.json Merge branch 'develop' into rory/february 2023-02-20 09:57:17 +00:00
plugins.ts Fix for budibase plugin skeleton, which utilises the old import style. 2022-12-12 12:31:32 +00:00
README.md Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
tsconfig.build.json Correlation id's and log context (#7232) 2023-01-11 20:39:33 +00:00
tsconfig.json Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
yarn.lock Enable higher concurrency and resiliency in worker tests 2023-02-13 11:57:30 +00:00

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.