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
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
Rory Powell
bf94125d33
Save email from third party user
2021-07-08 11:54:16 +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
mike12345567
7f0fc5f899
Fixing session issues after testing a bit.
2021-07-07 17:15:53 +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
mike12345567
b847f85d91
WIP - first version of user sessions.
2021-07-06 18:10:04 +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
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
feca6cc962
remove builder role from google auth, only allow google sign in if local account exists
2021-06-08 14:46:18 +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
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
c6a6d49cd7
Updating administration middleware so that internal requests allowed through automatically.
2021-05-21 16:43:01 +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
mike12345567
b01da0aad5
Merge branch 'next' of github.com:Budibase/budibase into feature/password-reset
2021-05-04 15:21:53 +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
0dd46d12fa
Updating test cases and some re-work of the email system.
2021-04-23 18:07:39 +01:00
Martin McKeaveney
9fdff36b54
only keep userId in payload
2021-04-22 14:53:19 +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
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
Martin McKeaveney
301f681c88
config creation and management APIs
2021-04-20 18:14:36 +01:00
mike12345567
b4c8bf81f7
Swapping over everything to use the new user ID and updating everything after some end to end testing.
2021-04-20 17:17:44 +01:00
mike12345567
c3a1841f01
Updating auth package to remove use of email address (bar logging in).
2021-04-19 17:31:47 +01:00
mike12345567
b887fd6b99
Changing user db to be called global db.
2021-04-16 18:09:34 +01:00
mike12345567
af53ed2109
Fixing some issues with auth module.
2021-04-15 16:57:01 +01:00
mike12345567
c7171d0303
Linting.
2021-04-14 16:44:10 +01:00
mike12345567
a76964d12e
Updating environment in auth package, easily see required env settings.
2021-04-14 14:13:48 +01:00
Martin McKeaveney
77c98009b8
joi syntax, adding db user builder key to cookie
2021-04-14 13:22:57 +01:00
Martin McKeaveney
d72a6dc8df
currentapp being set correctly for user
2021-04-13 13:26:13 +01:00
Martin McKeaveney
3226ee90e2
Authentication working on builder homepage, integration with currentapp middleware
2021-04-13 11:56:57 +01:00
mike12345567
eaad867780
Some work towards implementing the current app cookie, removing some old dead code and re-working some of the different middlewares involved.
2021-04-12 18:31:58 +01:00
Martin McKeaveney
dd0b4baef5
in progress - currentapp token
2021-04-12 12:02:28 +01:00
Martin McKeaveney
98576f586e
login page
2021-04-11 11:35:55 +01:00
Martin McKeaveney
c7f4070ff5
encapsulate more auth functionality into shared module and use in worker
2021-04-08 11:20:37 +01:00
Martin McKeaveney
f135aa9db4
JWT auth on admin endpoints
2021-04-07 15:15:05 +01:00
Martin McKeaveney
cf073a1e55
groundwork for budibase auth lib
2021-04-07 11:33:16 +01:00