Commit Graph

62 Commits

Author SHA1 Message Date
Andrew Kingston 679f08dcc4
Update auth endpoints to use TS 2024-11-27 11:02:16 +00:00
melohagan 923ae021a1
Feature/nps survey (#13423)
* get process env in JS file

* Hard-code posthog token

* Set posthog key based on env

* Don't run posthog locally in dev

* fix

* Only run posthog analytics in prod

* Don't use posthog in dev

* Revert posthog code changes.

* Remove intercom

* lint
2024-04-09 15:24:03 +01:00
mike12345567 a8ff2da768 Removing isAdmin and isBuilder flags from the auth store, using SDK only. 2023-08-01 11:30:04 +01:00
mike12345567 e469abb679 reworking frontend to use shared core functions to check if is admin or builder (needs further expansion). 2023-07-19 18:05:02 +01:00
Andrew Kingston 4a0e23a171 Transfer lock to next oldest session when disconnecting from the builder 2023-06-05 13:54:17 +01:00
Dean 5b9fbbc3b4 Various fixes for update self behaviour 2023-03-07 13:35:18 +00:00
Gerard Burns e7f8a8a801 Backups UI Changes (#9726)
* Backups UI Changes

* PR Feedback

---------

Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-02-22 10:03:11 +00:00
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
Rory Powell a5a8b96be1 Fix logout race condition 2022-11-11 11:26:36 +00:00
Rory Powell 33719ef27e Update group upgrade UX 2022-09-23 11:40:19 +01:00
Rory Powell a5db53c539 Disable pageview event 2022-08-08 12:28:39 +01:00
Rory Powell cc9bc937b6 Reduce event frequency 2022-08-08 10:47:39 +01:00
Andrew Kingston 96e239c66c Prevent showing any mention of groups when groups are not enabled both the platform and license level 2022-08-02 20:03:39 +01:00
Martin McKeaveney b5c712bb8a only add account portal people to intercom 2022-07-15 10:26:41 +01:00
Martin McKeaveney 0975fa6413 only show intercom in cloud 2022-07-15 09:32:46 +01:00
Martin McKeaveney 889a8a2882 filter out non-admins in intercom 2022-07-04 12:51:38 +01:00
Rory Powell 6fbb5afeec Remove ui events except for component created and view published app 2022-06-06 12:51:22 +01:00
Rory Powell 33f44f6ee7 Remove todos 2022-06-06 11:11:13 +01:00
Rory Powell 3e5e95a9c1 Add analytics to backend-core. Update server posthog usage 2022-03-25 13:04:34 +00:00
mike12345567 4086c8f439 Fixes for review comments. 2022-02-28 18:39:05 +00:00
mike12345567 594cb77b1e Getting api key/dev info docs setup and in use. 2022-02-10 19:06:49 +00:00
Michael Drury 911f2780ef Start of API key modal. 2022-02-09 20:30:52 +00:00
Andrew Kingston de12e0dc79 Merge branch 'develop' of github.com:Budibase/budibase into frontend-core 2022-02-01 16:46:00 +00:00
Rory Powell bdc37b6ff7 Fix CSRF token not present using local auth 2022-01-31 11:07:54 +00:00
Andrew Kingston 45547f1efc Improve handling of 403 logouts and return URL cookie 2022-01-25 15:28:31 +00:00
Andrew Kingston e1a1d47238 Don't show an error if analytics fails to activate 2022-01-24 18:58:22 +00:00
Andrew Kingston db3b4c0b8c Update remaining builder stores to use new core API and handle errors properly 2022-01-24 14:32:27 +00:00
Rory Powell b5250ac244 Fix return url using cookies 2022-01-13 14:07:49 +00:00
Martin McKeaveney aae287e6e8 track pageviews in PH, add job role and company size into intercom 2021-11-10 19:40:55 +01:00
Martin McKeaveney 7cf916a00d code review, simplify iframeTemplate 2021-11-10 12:12:33 +01:00
Martin McKeaveney 4367c9adf6 prevent redirect to acct portal when not necessary 2021-11-09 18:00:32 +01:00
Martin McKeaveney 0cc2069929 fixes for templates, ensured iframetemplate fires ready event 2021-11-09 17:40:31 +01:00
Martin McKeaveney cb5df8fe1e Merge pull request #3159 from Budibase/feature/template-urls
allow opening a template directly from a URL
2021-11-04 14:46:18 +01:00
Martin McKeaveney b80a93d6d5 cookie based approach 2021-11-04 14:03:18 +01:00
Rory Powell fbaedd6a34 Fix: Prevent user updates in multi tenant mode from deleting user password. Also forward the authentication error from the backend to the login page to warn when an sso user is trying to log in with a password when one is not present 2021-11-03 15:04:05 +00:00
Martin McKeaveney fa3bb8c119 set template URL in store instead of passing around param 2021-11-03 12:43:52 +01:00
Martin McKeaveney 9a1807bc89 get company size and role into intercom 2021-10-25 11:00:33 +02:00
Martin McKeaveney f6a52ad92a fix intercom createdAt 2021-10-07 12:03:08 +01:00
Rory Powell a299e30556 Respect tenant in url in UI app. Reject tenant and session mismatch 2021-09-29 16:41:58 +01:00
Martin McKeaveney 402365f5b3 remove company size logic from the code 2021-09-28 17:18:56 +01:00
Martin McKeaveney 24837ef2f1 lint 2021-09-22 12:26:02 +01:00
Martin McKeaveney 2523d54641 account for user size in intercom 2021-09-22 09:38:32 +01:00
Martin McKeaveney 0a7512a4d9 changed events to constants, instantiated analytics client at right time 2021-09-21 20:21:15 +01:00
mike12345567 46ea3f3e9e Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants"
This reverts commit 4834b765be, reversing
changes made to 2456e69483.
2021-08-05 09:59:08 +01:00
Michael Drury b86a6fddc9 Revert "Multi-tenancy/organisations" 2021-08-04 10:02:24 +01:00
mike12345567 af9b0a738d Fixing issues with pages reloading in weird ways. 2021-07-30 20:39:42 +01:00
mike12345567 35f1b50511 Fixing an issue where you could accidentally end up on org/admin page due to the reactivity statements firing all the time. 2021-07-27 17:56:39 +01:00
mike12345567 27b2a13817 Swapping admin -> global in worker to reduce confusion in API url naming. 2021-07-22 12:56:47 +01:00
mike12345567 63368fdae9 Adding query string functionality to skip org setup. 2021-07-21 18:23:49 +01:00
mike12345567 be1558e1e7 Adding mechanism to disable org functionality when multi-tenancy disabled. 2021-07-21 17:52:42 +01:00