Girish Ramakrishnan
0bd0857189
Update many modules
...
npm WARN deprecated ejs-cli@1.2.0: This has breaking change. (in ejs package) use <= 2.0.0.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
2017-08-13 17:57:48 -07:00
Girish Ramakrishnan
b421866bf5
Remove simpleauth
...
Simple Auth used to provide auth over HTTP. The original motivation
behind this was this was a simple way to add Cloudron Auth integration.
Back in the day, Cloudron Auth was a requirement for apps but this is
not the case anymore.
This is currently not used by any app and having this might encourage
people to make Cloudron specific un-upstreamable changes.
2017-03-19 01:31:38 -07:00
Girish Ramakrishnan
26ed331f8e
Add default clients in clients.js
2017-01-09 15:41:29 -08:00
Girish Ramakrishnan
d802b88998
delete tokens when deleting a client
...
fixes #36
2016-09-07 11:10:19 -07:00
Johannes Zellner
1bf869963b
Only allow alphanumerics and dash in auth client names
2016-06-23 10:16:02 +02:00
Girish Ramakrishnan
2017d668a9
use 128 byte passwords
2016-06-17 09:49:25 -05:00
Johannes Zellner
f284b4cd83
Use clients.get() instead of clientdb.get()
2016-06-13 13:51:14 +02:00
Johannes Zellner
0eff8911ee
Do not use DatabaseError in routes clients.js
2016-06-13 13:29:39 +02:00
Johannes Zellner
9b9db6acf1
Only the rest api shall not allow to remove those
2016-06-09 15:35:46 +02:00
Johannes Zellner
001bf94773
Remove unused require
2016-06-09 15:35:20 +02:00
Johannes Zellner
0160c12965
Allow to distinguish between built-in auth clients and external ones
2016-06-09 15:35:00 +02:00
Johannes Zellner
4776a005a5
Remove redundant client TYPE_*s
2016-06-08 14:09:06 +02:00
Johannes Zellner
e431bd6040
Fix typo
2016-06-08 11:36:01 +02:00
Johannes Zellner
a69cd204d6
Handle sdk and cli clients just like the webadmin
2016-06-08 11:33:08 +02:00
Johannes Zellner
16444f775d
Prevent deletion of the built-in clients
2016-06-08 11:24:02 +02:00
Johannes Zellner
2676658b5d
Add auth client cid-sdk and cid-cli
2016-06-08 11:20:06 +02:00
Johannes Zellner
02d2a7058e
Remove whitespace in scope input
2016-06-07 16:15:53 +02:00
Johannes Zellner
4afde79297
Fix error message
2016-06-07 15:56:22 +02:00
Johannes Zellner
691803f10b
Allow optional expiresAt to be set on token creation
2016-06-07 15:47:13 +02:00
Johannes Zellner
290ab6cc7d
Fix typo
2016-06-07 15:38:30 +02:00
Johannes Zellner
8e5af17e5d
Add route to delete a single token
2016-06-07 15:34:27 +02:00
Johannes Zellner
721fe74f3c
The route creates the subobject
2016-06-07 14:47:47 +02:00
Johannes Zellner
96eeb247a1
Add rest api to create a new token for a client
2016-06-07 14:29:37 +02:00
Johannes Zellner
684625fbaf
Remove unused clients.getAllWithDetailsByUserId()
2016-06-07 12:25:48 +02:00
Johannes Zellner
c8b9ae542c
Simply return oauth clients instead of join with tokendb
2016-06-07 12:15:25 +02:00
Johannes Zellner
af29c1ba86
Handle external api client requests separately
2016-06-07 12:00:18 +02:00
Johannes Zellner
e603cfe96e
Add clients.getAllWithDetails()
2016-06-07 11:17:29 +02:00
Johannes Zellner
4df49a82e5
Some clientdb.TYPE_ oversight in clients.js
2016-06-03 15:28:04 +02:00
Johannes Zellner
226537de04
Move client TYPE_* to clients.js
2016-06-03 15:05:00 +02:00
Johannes Zellner
1360729e97
Don't use clientdb directly from auth.js and apptask.js
2016-06-03 14:52:59 +02:00
Johannes Zellner
725e1debcc
Provide getByAppIdAndType() by clients.js
2016-06-03 14:47:06 +02:00
Johannes Zellner
c52d0369fa
Provide better feedback on invalid scopes
2016-06-03 13:53:33 +02:00
Johannes Zellner
f988bb4d14
Do not use PREFIX_USER for token managment
2016-06-03 12:58:39 +02:00
Johannes Zellner
105047b0c4
Add SCOPE_ROLE_SDK
2016-06-03 11:08:35 +02:00
Girish Ramakrishnan
b077223e58
fix scope name
2016-06-02 17:49:54 -07:00
Girish Ramakrishnan
d2864dfe56
rename root scope to cloudron scope (for lack of better scope name)
2016-06-02 16:51:14 -07:00
Girish Ramakrishnan
0ef0e010a3
use defines for role names
2016-04-25 10:30:56 -07:00
Girish Ramakrishnan
2d27da89d2
validate individual scopes
2016-04-25 10:26:47 -07:00
Johannes Zellner
a6a39cc4e6
Adapt clients.getAllWithDetailsByUserId() to new client types
2015-10-16 19:36:12 +02:00
Johannes Zellner
37185fc4d5
Only allow simple auth clients through simple auth
2015-10-16 14:49:51 +02:00
Johannes Zellner
22402d1741
Remove legacy test auth client type
2015-10-16 10:05:58 +02:00
Girish Ramakrishnan
9c157246b7
add type field to clients table
2015-10-15 17:35:47 -07:00
Girish Ramakrishnan
a9ccc7e2aa
remove updating clients
...
clients are immutable
2015-10-15 16:08:17 -07:00
Girish Ramakrishnan
63edbae1be
minor rename
2015-10-15 15:51:51 -07:00
Girish Ramakrishnan
df9d321ac3
app.portBindings and newManifest.tcpPorts may be null
2015-07-20 00:10:36 -07:00