3
0

1037 Commits

Author SHA1 Message Date
Denis Arh
47dfbd8ab3 Increase activity/heartbeat rate from connected (ws) user to 60s 2019-04-27 16:02:28 +02:00
Denis Arh
6a01e13858 Cleanup attachment servig logic for CRM 2019-04-27 15:38:27 +02:00
Denis Arh
ba8b77e4e1 Cleanup attachment serving logic
Remove old workarounds in rest/handlers and replace them with
simple func(http.ResponseWriter, *http.Request) that we return
from controller functions
2019-04-27 15:25:56 +02:00
Denis Arh
e9475feda0 Implement basic logic for /status endpoint
Currently it gets a list of connected users from websocket session store
and popuplates array of statuses:

[{"userID":"83947155491913829","status":"online","icon":"","message":""},
 {"userID":"85008081418715239","status":"online","icon":"","message":""}]
2019-04-27 14:41:46 +02:00
Denis Arh
1ce5b355ae Improves presence/activity handling over websocket 2019-04-27 14:20:33 +02:00
Denis Arh
5be1b607f5 Add 'users jwt <email>' command
Command generates valid JWT for that user
2019-04-27 13:19:14 +02:00
Denis Arh
980b6d581c Refactor JWT encoder/handler
Handler is no longer passed as argument into routes etc but initialized in the Init()
and stored into auth.DefaultJwtHandler.
2019-04-27 13:17:37 +02:00
Denis Arh
8f98cdd52f Update DCO and CONTRIBUTING.md 2019-04-27 11:06:04 +02:00
Denis Arh
eae4643274 Fix requred fields, create chan members type 2019-04-27 10:43:26 +02:00
Tit Petric
7cbfc705ae fix(.drone.yml): dockerfile location for mono build 2019-04-26 22:50:20 +02:00
Tit Petric
bf3e99bff9 add(all): initial DCO and CONTRIBUTING.md 2019-04-26 22:26:28 +02:00
Tit Petric
0ec0431beb upd(system): implement check, return handler 2019-04-26 22:11:28 +02:00
Tit Petric
98a3fc059e upd(all): regenerate handlers 2019-04-26 22:11:28 +02:00
Tit Petric
2cca75cb1d upd(codegen): check for func(w,r) in http handlers return 2019-04-26 22:11:28 +02:00
Tit Petric
c297b173eb upd(all): lock migrations table 2019-04-26 22:11:28 +02:00
Tit Petric
1a7c971597 fix(build): docker file cleanups 2019-04-26 22:11:28 +02:00
Tit Petric
60ab73b03e add(messaging): webhooks implementation 2019-04-26 22:11:28 +02:00
Tit Petric
1dabd7a838 upd(system): extend user api with avatars 2019-04-26 22:11:28 +02:00
Tit Petric
f79f94da88 add(messaging): webhooks db migrations 2019-04-26 22:11:28 +02:00
Tit Petric
dd75d7db70 add(api,docs): webhooks schema and docs 2019-04-26 22:11:28 +02:00
Tit Petric
6cb7488083 upd(Makefile): don't install dependencies 2019-04-26 22:11:28 +02:00
Tit Petric
619fa4de02 upd(all): docker image build improvements 2019-04-26 22:11:28 +02:00
Tit Petric
78f9b7b53a upd(vendor): update vendor 2019-04-26 22:11:28 +02:00
Tit Petric
2952cebb62 upd(internal): encode ChannelID as string 2019-04-26 18:37:56 +02:00
Denis Arh
dc2dd4c787 Add missing userID field to output payload 2019-04-26 17:15:23 +02:00
Denis Arh
52a18cd8ad Removed obsolete package (github.com/gorilla/context) 2019-04-26 14:43:30 +02:00
Denis Arh
3026a594ed Decupling system & messaging, removing Organisation type mess 2019-04-26 14:37:23 +02:00
Denis Arh
8f7c7651a0 Fix integration tests 2019-04-26 14:00:12 +02:00
Denis Arh
e2bbdda1f5 Channel list is no longer sent on ws connect 2019-04-26 13:54:03 +02:00
Denis Arh
bc181ee9a2 User list is no longer sent on ws connect 2019-04-26 13:51:23 +02:00
Denis Arh
b0239761f7 User/chan/messaging activity refactored 2019-04-26 13:34:35 +02:00
Denis Arh
f8e7a2133d Add status stubs 2019-04-26 11:46:33 +02:00
Denis Arh
d533cca1d5 Move message filtering to /search endpoint 2019-04-26 09:34:23 +02:00
Denis Arh
4763ca863f Better support for array get params in request parsers
We now support `&var=1&var=2` and (or!) `&var[]=1&var[]=2`.
2019-04-26 09:32:16 +02:00
Denis Arh
1a8a7da000 New & improved channel histroy rest endpoint params 2019-04-26 07:35:19 +02:00
Denis Arh
ed078ce456 Move cmd execution to REST endpoint, remove /echo, add /me 2019-04-26 07:18:18 +02:00
Denis Arh
43a5693ee5 Move list of commands from WS initial payload to /commands REST endpoint 2019-04-26 06:16:34 +02:00
Denis Arh
ad65c643ad Add url/param signing capapbilities to support access to attachments (CRM) 2019-04-26 06:04:15 +02:00
Denis Arh
2132d1fdca Add url/param signing capapbilities to support access to attachments 2019-04-25 18:24:41 +02:00
Denis Arh
5d61b3d8cd Logout should return true on success 2019-04-24 19:05:06 +02:00
Denis Arh
6d607f52ac Update auth help/instructions 2019-04-24 19:04:50 +02:00
Denis Arh
b35d99d516 Build & push docker images (3x api-* + crust) 2019-04-23 20:43:07 +02:00
Denis Arh
b40c7d5886 Disable sys routes test 2019-04-23 19:44:43 +02:00
Denis Arh
ce55535fd7 Fix auth service tests 2019-04-23 19:29:55 +02:00
Denis Arh
4af11abe81 Add missing deps (terminal, password) 2019-04-23 19:11:40 +02:00
Denis Arh
39df04df28 Merge branch 'feature/internal-auth' 2019-04-23 10:38:01 +02:00
Denis Arh
91d98f9faf Add system:application permission rules to reset procedure 2019-04-19 13:24:44 +02:00
Denis Arh
0d7c37e472 Fix system-cli flags usage 2019-04-19 13:24:24 +02:00
Denis Arh
11def550c6 Refactor JWT init flow 2019-04-18 19:55:37 +02:00
Denis Arh
c4104488e5 More strict ext-auth protocols, remove jwt cookie + small fixes 2019-04-18 19:53:02 +02:00