Commit Graph

171 Commits

Author SHA1 Message Date
Johannes
83b5bb394c Specify sso for apps not using of optionalSso 2016-11-23 12:09:08 +01:00
Girish Ramakrishnan
9337f832d3 optionalAuth -> optionalSso 2016-11-19 21:37:39 +05:30
Girish Ramakrishnan
94037e5266 remove oauth proxy backend logic 2016-11-19 17:13:08 +05:30
Girish Ramakrishnan
f5ebb782c0 remove support for singleUser 2016-11-19 17:12:31 +05:30
Girish Ramakrishnan
9c0f2175f7 add sso route parameter to app install
presumably, we don't allow this to be changed post installation
2016-11-19 17:11:46 +05:30
Johannes Zellner
fc3768101d Token exchange route does not need appstoreId 2016-11-15 15:24:28 +01:00
Johannes Zellner
a25b884dbb Fix typo, use .body 2016-11-14 16:29:47 +01:00
Johannes Zellner
567401c337 Fetch appstore credentials on app un-/purchase for caas 2016-11-14 15:40:53 +01:00
Johannes
4fd5b369f8 Reset app update indicator when an update was triggered
Fixes #48
2016-11-07 15:14:08 +01:00
Girish Ramakrishnan
1d8df65fbf Fix mailbox name for naked domains
Fixes #81
2016-10-12 19:54:04 -07:00
Johannes Zellner
629e061743 Use specific error if app backup for restore can't be found 2016-10-10 13:21:45 +02:00
Girish Ramakrishnan
6f0708eff2 Add mailbox with new app id 2016-10-03 16:11:36 -07:00
Girish Ramakrishnan
3adf183569 Fix apps.clone to allocate mailbox 2016-10-03 13:27:27 -07:00
Girish Ramakrishnan
6a32f89bf2 add/remove mailbox entry for app 2016-09-23 17:26:07 -07:00
Girish Ramakrishnan
c1bb264065 Set a timeout for superagent
The default is 'no timeout' and it will wait for the response forever.

https://github.com/visionmedia/superagent/issues/17#issuecomment-207742985
2016-09-12 13:06:18 -07:00
Girish Ramakrishnan
cd94d8f433 Save user certs separately from automatic certs
Fixing the admin cert is a bit more complex since it is used in
setup script as well. Can do that in a later task.

Fixes #44
2016-09-12 01:44:16 -07:00
Girish Ramakrishnan
b66ba0a2c7 take oauthProxy parameter in install and configure routes
part of #6
2016-09-06 23:43:27 -07:00
Girish Ramakrishnan
408dd61408 Send and receive oauthProxy in REST routes
Part of #6
2016-09-06 23:32:42 -07:00
Girish Ramakrishnan
ac5cef3c2f do not introspect the value of accessRestriction
if there are no users or groups, it simply means nobody can access it.
(maybe the admin is doing something on the cloudron and does not want
anyone to access it).
2016-09-06 16:37:14 -07:00
Girish Ramakrishnan
7b4c9dffab fix memoryLimit handling
0 means not set. and it will follow value in manifest

part of #18
2016-09-04 11:38:54 -07:00
Johannes Zellner
1ec5d8c03b Fix error usage 2016-08-05 14:01:19 +02:00
Johannes Zellner
26a590b827 Name the DatabaseError so we get better logs 2016-08-05 12:30:28 +02:00
Johannes Zellner
41ff92f747 Only unpurchase if the app has an appstoreId 2016-08-04 15:53:55 +02:00
Johannes Zellner
15f94a5134 Use the correct result object 2016-08-04 09:46:03 +02:00
Johannes Zellner
9c65fae4ec Also unpurchase on app uninstall 2016-08-04 09:38:00 +02:00
Johannes Zellner
65b4c83b75 Use the correct token when calling the appstore for purchase 2016-08-03 23:07:31 +02:00
Johannes Zellner
a91f89c7dd Rework the purchase api to use the new rest api on the appstore server 2016-08-03 18:30:41 +02:00
Johannes Zellner
dde597742c Do not expose purchase function 2016-08-03 17:57:53 +02:00
Johannes Zellner
a49e1b5117 Set xFrameOptions fallback 2016-07-15 11:08:11 +02:00
Johannes Zellner
0d5d54d2d8 Add xFrameOptions to apps and routes 2016-07-14 16:28:59 +02:00
Johannes Zellner
dcb14b452b Validate xFrameOptions in app install 2016-07-14 16:28:59 +02:00
Girish Ramakrishnan
bcc1b6343e initialize appId before icon is saved 2016-07-09 12:25:00 -07:00
Girish Ramakrishnan
a3d185e653 fix typo 2016-06-18 14:51:49 -05:00
Girish Ramakrishnan
c2da3da035 set force to false explicitly 2016-06-18 13:24:27 -05:00
Girish Ramakrishnan
7e93c23110 set the lastBackupId to backup from 2016-06-17 18:41:29 -05:00
Girish Ramakrishnan
7009b9f3ac implement clone 2016-06-17 17:45:14 -05:00
Girish Ramakrishnan
fe62aba4d7 make appdb.add take a data object 2016-06-17 16:43:35 -05:00
Girish Ramakrishnan
fee6f3de0f configure/restoreInstalledApps must always succeed 2016-06-16 06:50:34 -07:00
Girish Ramakrishnan
53cd45496b parse the response 2016-06-13 18:28:51 -07:00
Girish Ramakrishnan
942339435a return config correctly 2016-06-13 18:04:22 -07:00
Girish Ramakrishnan
2bd6519795 add assert 2016-06-13 18:02:57 -07:00
Girish Ramakrishnan
1763c36a0b restore from the backup's config.json
To summarize what we are doing is that restore is simply getting old data and
old code. Config is not changed. If config is required, then it has to come
in the restore REST parameter. Otherwise, there is too much magic.

https://blog.smartserver.io/2016/06/13/app-restore/
2016-06-13 16:54:59 -07:00
Girish Ramakrishnan
2c0eb33625 use apps.getAppConfig when generating config.json 2016-06-13 15:11:49 -07:00
Girish Ramakrishnan
040b9993c7 refactor code into getAppConfig 2016-06-13 15:07:15 -07:00
Girish Ramakrishnan
a2ec308155 pass the lastBackupId explicity as the backup to restore to 2016-06-13 10:13:54 -07:00
Girish Ramakrishnan
b82610ba00 pass data argument to restore 2016-06-13 10:08:58 -07:00
Girish Ramakrishnan
f9db24e162 Fix autoupdate detection logic
We should be comparing existing manifest ports with new manifest ports.
The user chosen bindings itself doesn't matter.
2016-06-08 08:45:40 -07:00
Girish Ramakrishnan
3236ce9cd6 check if both are null 2016-06-07 15:36:45 -07:00
Girish Ramakrishnan
1766da9174 update code path now takes appStoreId 2016-06-04 20:05:29 -07:00
Girish Ramakrishnan
dbdcf1ec27 pass data object to update 2016-06-04 19:12:36 -07:00