1
0
Fork 0
mirror of synced 2024-09-07 13:11:46 +12:00
Commit graph

280 commits

Author SHA1 Message Date
mike12345567
7743384f77 re-write, to use the ideas that Rory put in place, still WIP, un-tested but all implemented. 2021-08-02 18:34:43 +01:00
Rory Powell
dd8b1361d8 Fix import 2021-07-29 14:51:35 +01:00
Rory Powell
73d1cb41d8 Sync profile picture when using SSO 2021-07-29 14:43:23 +01:00
mike12345567
5dfeb9b3ca Limiting use of query string to a few select endpoints for determining tenant ID. 2021-07-27 18:02:59 +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
5324f506b6 Linting. 2021-07-27 16:24:39 +01:00
mike12345567
adf6d18cb1 Fixing some issues with public endpoints causing logout loop. 2021-07-27 16:17:02 +01:00
mike12345567
615053f201 Fixing some issues with org not being correctly detected. 2021-07-27 15:35:26 +01:00
mike12345567
224a63ccb2 Linting. 2021-07-26 13:20:42 +01:00
mike12345567
4606248ffd Fixing up everything found when testing with Cypress. 2021-07-26 13:19:47 +01:00
mike12345567
a630bfb515 Fixing test case. 2021-07-23 20:08:16 +01:00
mike12345567
c63ee57bbd Linting. 2021-07-23 20:03:11 +01:00
mike12345567
4d0faa38e3 Changing how apps are retrieved to be more efficient. 2021-07-23 20:01:53 +01:00
mike12345567
be6561e93d Adding use of the tenancy ID. 2021-07-23 17:41:00 +01:00
mike12345567
df942f7d7c Merge branch 'master' of github.com:Budibase/budibase into develop 2021-07-23 17:02:33 +01:00
mike12345567
4160d63b2d Merge branch 'fix/lucene-filtering' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-23 16:10:59 +01:00
mike12345567
fa3cf585d7 Adding concept of version to APIs. 2021-07-23 15:29:14 +01:00
mike12345567
313302cae2 Fixing test cases and bugs that they raised. 2021-07-22 22:36:16 +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
be1558e1e7 Adding mechanism to disable org functionality when multi-tenancy disabled. 2021-07-21 17:52:42 +01:00
mike12345567
3305400c83 Fixing saving of oidc and google auth, neither should require the callbackURL property with the tenancy update. 2021-07-21 11:10:26 +01:00
mike12345567
9d89362af1 Fixing some issues discovered with logging in. 2021-07-20 17:46:41 +01:00
mike12345567
129ff3fef2 Merge branch 'develop' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-20 15:56:12 +01:00
mike12345567
e56a0f5aa3 Fixing some tenancy issues. 2021-07-19 12:57:52 +01:00
mike12345567
d157285918 Adding organisation page. 2021-07-16 18:24:32 +01:00
mike12345567
f3156fca06 Further work, tenancy now working but some more work to be done. 2021-07-16 18:04:49 +01:00
mike12345567
b7995dd61d Updating auth to utilise the tenant system. 2021-07-16 15:08:58 +01:00
mike12345567
912659a8ad First version of multi-tenancy, work still to be done. 2021-07-15 17:57:02 +01:00
Rory Powell
33b352c3ef Store OIDC config in cookie instead of URL 2021-07-15 16:20:31 +01:00
Rory Powell
239e39e5ed Merge branch 'develop' into feature/oidc-support 2021-07-15 14:05:30 +01:00
Rory Powell
ea7ebafe12 Add database test configuration to auth package 2021-07-15 12:55:35 +01:00
mike12345567
f6a133e556 Cleaning up deployments into the app DB, moving API keys to be in global DB (which will be tenancy managed) and adding concept of platform info DB. 2021-07-14 16:29:32 +01:00
Rory Powell
3152bd1839 Invert logos config naming to prevent conflict 2021-07-14 15:48:29 +01:00
mike12345567
004f719dde Renaming groups to workspaces. 2021-07-13 17:27:04 +01:00
Peter Clement
9dd05ec96e Add UUID to each oidc config to distinguish each provider 2021-07-13 15:52:21 +01:00
Rory Powell
6c8a025760 Setup common test data 2021-07-13 12:08:58 +01:00
Rory Powell
b47073ae49 Remove redundant check on requireLocalAccount 2021-07-13 10:46:27 +01:00
Rory Powell
f7d91f7cd6 Test google auth strategy 2021-07-13 10:17:14 +01:00
Rory Powell
fc3d7122a7 Add jest to auth package + test oidc strategy 2021-07-13 10:02:08 +01:00
Andrew Kingston
aa2691a452 Merge pull request #1953 from Budibase/client-feature-flags
Client library updating and client library feature awareness
2021-07-09 16:52:45 +01:00
Rory Powell
baaaf3f237 Update clientId -> clientID 2021-07-09 16:21:42 +01:00
Rory Powell
a98ae5b367 Remove review comment 2021-07-09 09:37:52 +01:00
Rory Powell
73c8dcf71b Merge branch 'develop' into feature/oidc-support 2021-07-08 20:15:16 +01:00
Rory Powell
20b70a0445 Always maintain original user id. No longer remove old user during sync 2021-07-08 16:49:07 +01:00
Rory Powell
faf711e092 sync third party profile on every login 2021-07-08 16:11:48 +01:00
Rory Powell
1c18b4c6ac remove duplicate scope definition
scope can be defined both within the strategy declaration or when invoking passport
2021-07-08 15:21:54 +01:00
Rory Powell
c16cfc328f Linting 2021-07-08 13:12:25 +01:00
Rory Powell
ec93d15462 Integrate with configuration ui / support for email usernames 2021-07-08 13:04:04 +01:00
Andrew Kingston
a7a081da8c Add application/json as a known file type 2021-07-08 12:55:51 +01:00
Rory Powell
bf94125d33 Save email from third party user 2021-07-08 11:54:16 +01:00
Rory Powell
f0016f4bde Merge branch 'feature/oidc-support' of github.com:Budibase/budibase into feature/oidc-support 2021-07-08 11:12:45 +01:00
Rory Powell
25f1368227 Merge google/oidc user authentication and surface user relevant error messages during authentication 2021-07-08 11:12:34 +01:00
mike12345567
93302cb667 Linting. 2021-07-07 23:30:14 +01:00
mike12345567
4916ff7eb8 Adding sessions API. 2021-07-07 23:29:19 +01:00
Peter Clement
2e49686eab Merge branch 'feature/oidc-support' of https://github.com/Budibase/budibase into oidc-config-management 2021-07-07 17:42:31 +01:00
mike12345567
93cc9530ed Merge branch 'develop' of github.com:Budibase/budibase into feature/user-session 2021-07-07 17:17:16 +01:00
mike12345567
7f0fc5f899 Fixing session issues after testing a bit. 2021-07-07 17:15:53 +01:00
Peter Clement
cff2a9ad7d Fix for icon upload issue 2021-07-07 16:18:18 +01:00
Rory Powell
d6c6681220 Fallback to ID token to retrieve email when not available in passport profile (oidc userinfo) 2021-07-07 14:58:14 +01:00
Peter Clement
37b1200051 Allow user uploaded icons in oidc config 2021-07-07 13:41:09 +01:00
Martin McKeaveney
13517d5298 make logged in users basic by default, prevent allowing users to be assigned as default in the UI 2021-07-06 18:43:04 +01:00
mike12345567
b847f85d91 WIP - first version of user sessions. 2021-07-06 18:10:04 +01:00
Martin McKeaveney
aa0906bcad public role in builder backend UI 2021-07-06 17:19:53 +01:00
Martin McKeaveney
68df47e22f default to public in UI 2021-07-06 17:19:03 +01:00
Martin McKeaveney
25fd9cd54f default users without roles to public role 2021-07-06 17:13:02 +01:00
Rory Powell
71ddd41877 Improve error handling on openid-configuration request 2021-07-06 10:03:40 +01:00
Rory Powell
7803540399 Use configuration url to retrieve oidc endpoints
The /.well-known/openid-configuration endpoint can be used to
retrieve the majority of configuration needed for oidc

Additionally refactor the callback url to be generated on the server
side as this is a fixed endpoint.

Add linting fixes
2021-07-06 10:03:40 +01:00
Bernhard Hayden
baab7141c0 Proof of concept OIDC implementation 2021-07-06 10:03:40 +01:00
Peter Clement
0e6fb73b9e Add validation to backend for OIDC configuration 2021-07-05 14:27:19 +01:00
mike12345567
fd45ac86ab Fixing issue with Redis which was causing CPU peaking if couldn't connect. 2021-06-25 15:32:59 +01:00
mike12345567
f4757aeee1 Fixing issues discovered by cypress tests. 2021-06-21 18:37:14 +01:00
mike12345567
ed5dd08c66 Fixing authentication with API key issue. 2021-06-21 17:13:06 +01:00
Martin McKeaveney
fbc09f4b4a Merge pull request #1667 from Budibase/fix/stability-bugfixes
Fix/stability bugfixes
2021-06-08 19:40:41 +01:00
mike12345567
72c3ff8c2e Formatting. 2021-06-08 18:06:56 +01:00
mike12345567
fe66c3535c Fixing a collection of issues, specifically users being exported/imported and issues with database import causing weirdness (metadata doc being wrong). 2021-06-08 18:06:16 +01:00
Martin McKeaveney
feca6cc962 remove builder role from google auth, only allow google sign in if local account exists 2021-06-08 14:46:18 +01:00
mike12345567
1e9ce62261 Merge branch 'master' of github.com:Budibase/budibase into fix/cypress-fixes 2021-06-07 13:22:27 +01:00
mike12345567
fe4fcad77c Fixing issue with builder not always having the correct roles to view an app - global builders are now admins in all apps. 2021-06-04 12:13:29 +01:00
Martin McKeaveney
ca6735a11a set content type on client lib upload 2021-06-03 21:33:44 +01:00
Martin McKeaveney
e927f44c12 removing superfluous controllers 2021-06-01 20:22:56 +01:00
Martin McKeaveney
edfc23454d Merge branch 'master' of https://github.com/Budibase/budibase into lab-day-2705 2021-06-01 19:24:24 +01:00
mike12345567
bdc0567464 Merge branch 'master' of github.com:Budibase/budibase into fix/cypress-fixes 2021-06-01 15:25:37 +01:00
Martin McKeaveney
a00357838d remove log 2021-06-01 15:03:19 +01:00
Martin McKeaveney
36b39ef4df merge google accounts, improve connection pooling for RDBMS 2021-06-01 15:00:28 +01:00
Martin McKeaveney
0c90f9ffc5 adding watchtower to docker config 2021-05-28 10:09:32 +01:00
mike12345567
1146d508fd Fixing app cypress test cases. 2021-05-25 13:25:42 +01:00
Martin McKeaveney
064f1e961b sanitizing client lib URL 2021-05-24 21:30:46 +01:00
mike12345567
ab4e880807 Fixing issue with redis updates in tests. 2021-05-24 17:05:46 +01:00
mike12345567
85102fab4e Changing how connection is waited for. 2021-05-24 16:31:50 +01:00
mike12345567
3a9a32f5f6 Adding an initial connection timeout of 5 seconds which after it will retry again. 2021-05-24 16:30:24 +01:00
mike12345567
7e6f215598 Linting and fixing an issue with the dev pass through. 2021-05-24 16:20:02 +01:00
mike12345567
4b786f51d2 Formatting. 2021-05-24 14:56:23 +01:00
mike12345567
0a4c4f1cc0 Adding some changes for to redis library, allowing reconnection. 2021-05-24 14:54:47 +01:00
mike12345567
c6a6d49cd7 Updating administration middleware so that internal requests allowed through automatically. 2021-05-21 16:43:01 +01:00
mike12345567
a54b582e0d Updating UI to use the updated at. 2021-05-21 14:38:58 +01:00
mike12345567
6ccec1632a Adding a debounced updated at timestamp to applications. 2021-05-21 13:07:10 +01:00
mike12345567
c6f7f115b5 Fixing issues with the user table within the apps. 2021-05-19 15:55:00 +01:00
mike12345567
0bbd45b413 Adding the ability to get all apps, with the status attached. 2021-05-19 15:09:57 +01:00
Martin McKeaveney
ee9a097979 lint 2021-05-17 21:43:50 +01:00
mike12345567
17504443df Merge branch 'feature/draft-apps' of github.com:Budibase/budibase into feature/draft-apps 2021-05-17 14:24:36 +01:00
mike12345567
277ceb3ad1 Updating role system to never think about the dev app. 2021-05-17 14:20:19 +01:00
Martin McKeaveney
fc7ddbe540 merge 2021-05-16 21:29:07 +01:00
Martin McKeaveney
0f2bcf581d revert functionality working 2021-05-16 21:25:37 +01:00
mike12345567
a61edd8124 Formatting. 2021-05-14 16:32:51 +01:00
mike12345567
c947199558 Adding administration roles API. 2021-05-14 16:31:07 +01:00
mike12345567
cea82f9335 A general re-work of some parts of the auth lib, as well as moving roles/permissions around to make it possible to build an admin API which has role knowledge. 2021-05-14 15:43:41 +01:00
Martin McKeaveney
95c80f2b4a set up live replication between prod and dev instances 2021-05-13 17:24:32 +01:00
mike12345567
fa0544054b Fixing an issue with portal calls causing the app to be re-locked. 2021-05-13 15:32:03 +01:00
mike12345567
6056b8bb61 Fixing issues with redis keys, however still not removing lock. 2021-05-13 14:34:04 +01:00
mike12345567
81c5ed5554 Altering object store so that all writes/reads to the object store have the dev app prefix replaced with standard app. 2021-05-13 13:29:53 +01:00
Martin McKeaveney
c3e7548255 dev mode E2E 2021-05-13 11:06:08 +01:00
mike12345567
2021c59dd9 Putting together redis lock system. 2021-05-12 17:37:09 +01:00
mike12345567
13b1e78ee2 Merge branch 'next' of github.com:Budibase/budibase into feature/draft-apps 2021-05-12 12:49:42 +01:00
mike12345567
2ec6b15e56 General cleanup, doing away with the concept of hosting in the builder and the generally confusing difference between cloud, self hosting and running locally - server is simply always a server now. 2021-05-11 17:49:26 +01:00
mike12345567
8e1f18e456 Changing INTERNAL_KEY to INTERNAL_API_KEY. 2021-05-11 15:23:03 +01:00
mike12345567
7736869148 Some updates, working towards supporting automation send smtp email also removing the styling template, adding to base. 2021-05-11 12:02:29 +01:00
Martin McKeaveney
8174f44d40 pull template type from body instead of params 2021-05-10 14:41:52 +01:00
mike12345567
4e3bc326b4 Updating with a tested and functional API for uploading files for configs. 2021-05-07 13:55:30 +01:00
Michael Drury
5006ca90c4 Some general backend cleanup. moving packages around, removing some traces of electron, and prepping for standardised object store library. 2021-05-06 19:27:24 +01:00
Martin McKeaveney
559b8789f6 merge with next 2021-05-06 11:56:53 +01:00
mike12345567
8c1f274fbb Making some changes to how configs are scoped. 2021-05-06 10:51:21 +01:00
Martin McKeaveney
39b293aa9d endpoint for budibase configuration checklist 2021-05-05 20:58:31 +01:00
mike12345567
82687bad26 Merge branch 'next' of github.com:Budibase/budibase into feature/password-reset 2021-05-05 18:00:22 +01:00
mike12345567
2ee4fd21e4 Updating testing system across the board after playing around with it, having the worker tests run when top level test is ran, fixing environment in worker when testing, removing the use of redis (replacing with ioredis-mock) when in test. 2021-05-05 17:49:34 +01:00
mike12345567
7bc3514fc1 Finalising the usage of redis in the password reset and invitation systems. 2021-05-05 15:10:28 +01:00
mike12345567
b372d2a824 Fleshed out fully all redis interactions for invitations and password resets. 2021-05-05 12:11:06 +01:00
Martin McKeaveney
77830bec4f lint and tidy 2021-05-04 18:14:13 +01:00
mike12345567
1cf778845a Fixing issues with Redis/Bull and the integration with new redis module. 2021-05-04 18:13:44 +01:00
Martin McKeaveney
cb02c9bf58 google oauth UI 2021-05-04 17:31:06 +01:00
mike12345567
b01da0aad5 Merge branch 'next' of github.com:Budibase/budibase into feature/password-reset 2021-05-04 15:21:53 +01:00
Andrew Kingston
797e8a8b67 Add explicit prettier options 2021-05-04 11:32:22 +01:00
Keviin Åberg Kultalahti
0afbf1649e lint:fix 2021-05-03 09:31:09 +02:00
mike12345567
58ca0d4224 Updating auth middleware to accomodate public endpoints for the server properly and some refactoring. 2021-04-28 18:13:21 +01:00
mike12345567
60b61f1322 Fixing login issue. 2021-04-28 14:28:25 +01:00
mike12345567
adce859f98 Formatting. 2021-04-27 17:30:19 +01:00
mike12345567
08c158c121 Adding a redis client to the auth system, as part of work towards the reset password flow. 2021-04-27 17:29:05 +01:00
mike12345567
0dd46d12fa Updating test cases and some re-work of the email system. 2021-04-23 18:07:39 +01:00
mike12345567
ea8e3b7d3f Adding testing to worker, still WIP. 2021-04-23 14:58:06 +01:00
Martin McKeaveney
c273152126 fix imports 2021-04-22 15:27:09 +01:00
Martin McKeaveney
9fdff36b54 only keep userId in payload 2021-04-22 14:53:19 +01:00
Martin McKeaveney
a071d7b365 tidy up 2021-04-22 14:07:00 +01:00
Martin McKeaveney
2555d711b2 scoped configuration management 2021-04-22 13:46:54 +01:00
Martin McKeaveney
6462848191 config specificity 2021-04-22 11:45:22 +01:00
Martin McKeaveney
8fab374c1f google login reading from couch 2021-04-21 21:08:04 +01:00
Martin McKeaveney
d8db863faa merge 2021-04-21 18:43:20 +01:00
Martin McKeaveney
28f8f8b6ef custom google middleware 2021-04-21 18:40:32 +01:00
mike12345567
e85b7682e0 Initial CRUD interface for templates. 2021-04-21 18:15:57 +01:00
mike12345567
15223080d5 Formatting and linting. 2021-04-21 16:46:51 +01:00
mike12345567
76ceb6a951 Some re-work of the auth package, making it a bit easier to use/less likely to make a mistake. 2021-04-21 16:42:44 +01:00
Martin McKeaveney
ffe167bbd3 google auth E2E 2021-04-21 12:12:22 +01:00