Commit Graph

96 Commits

Author SHA1 Message Date
b736f5f6cb Improve middleware definition and cleanup code 2020-09-25 22:15:57 +02:00
5dc0bd710a Make nunjucks and static file server compatible with pkg 2020-09-24 22:42:55 +02:00
87aae6bb33 Fix some nunjucks globals not properly set and make getCSRFToken dynamic 2020-09-23 16:11:51 +02:00
47e0756930 Add websocketUrl view local 2020-09-23 12:31:19 +02:00
79d3b51f90 Pass a whole Session to WebSocketListeners 2020-09-23 08:55:35 +02:00
dfee2645e1 Express: add custom bind address setting 2020-09-17 21:15:37 +02:00
3af1f4a4e5 Parse json bodies for application/*+json too 2020-08-28 17:40:04 +02:00
25b1e71784 CSRFProtectionComponent: give more room for excluding requests 2020-08-28 16:52:49 +02:00
84f2f7118a Csrf protection test: migrate to supertest 2020-08-05 12:06:21 +02:00
31f974c0a6 Serve static files extra early to avoid useless middlewares execution 2020-07-28 12:11:41 +02:00
3a4755ce98 Give the redirectBack function its own Component back 2020-07-28 10:03:25 +02:00
b179afdaf5 nunjucks: override default dump filter to allow circular dependencies 2020-07-26 11:37:36 +02:00
6618e874e0 mail: switch from deprecated TLS usage to STARTTLS 2020-07-20 11:29:10 +02:00
fe772c4e14 WebSocketListener: make cookies+session optional 2020-07-19 17:37:10 +02:00
197b963e4c Add cache interface 2020-07-19 12:01:22 +02:00
e9a20c82ed Fix chmod check and relax mail 2020-07-15 15:39:08 +02:00
9ce345d99d Don't start in production if important security fields are misconfigured 2020-07-15 15:06:29 +02:00
74dac9b314 Trust loopback proxy 2020-07-15 12:35:14 +02:00
eb935bf52a Fix auth redirect_uri chain 2020-07-15 12:31:07 +02:00
634edda704 RedirectBackComponent: fix it and integrate it into NunjucksComponent 2020-07-15 10:24:01 +02:00
6885f3da1c Add configurable maxAge for session cookie, defaults to 30 days 2020-07-14 15:06:46 +02:00
3561614f96 Promote some views to wms-core 2020-07-12 11:47:47 +02:00
172b977fcf Improve reliability of RedirectBackComponent 2020-07-11 12:09:05 +02:00
0e96a285ac Properly split routing in 2 steps: init, handle 2020-07-11 11:46:16 +02:00
4b8a3b307d Integrate file upload form middleware into controllers 2020-07-11 11:08:57 +02:00
6cf153c36b Use gzip compression 2020-07-09 14:18:05 +02:00
6bdfc9b4b7 Add CSRF route excluders 2020-07-08 13:28:22 +02:00
724d59daba Fix core version grabbing 2020-07-08 11:09:27 +02:00
afdfadd34e Add CsrfProtectionComponent tests and fix missing promise await 2020-07-08 10:58:57 +02:00
e72bb08a66 Add frontend support for custom flashed data keys 2020-07-06 10:42:46 +02:00
ca39c3e538 Fix mail settings and add mail from 2020-06-27 18:15:02 +02:00
b043513fe8 Bug fixes and app settings 2020-06-27 17:12:50 +02:00
94286dc833 auto update: add git fetch command 2020-06-15 12:58:27 +02:00
a15d496c53 Use formidable instead of multer 2020-06-14 21:47:18 +02:00
adf380c19d Add request parsing middlewares to controllers 2020-06-14 17:33:37 +02:00
a2ef0f6a42 Fix http requests logging 2020-06-14 16:04:50 +02:00
98566811c3 Provide extended option to urlencoded middleware 2020-06-14 15:08:56 +02:00
e965303777 Add logging full http requests cli arg 2020-06-14 11:43:00 +02:00
b85fbe6c21 Log accept header for every request 2020-06-04 10:15:24 +02:00
924104f700 Add auto update component 2020-05-05 15:19:23 +02:00
fc5344c629 Fix bad place of use for redis pass 2020-04-25 18:32:00 +02:00
6868411aa7 Add configurable redis pass 2020-04-25 18:26:46 +02:00
9b7ec1e516 Nunjucks: distinguish application version from core version 2020-04-25 09:35:25 +02:00
de777bc844 Make redis prefix configurable 2020-04-25 09:32:59 +02:00
6469de499f Add NunjucksComponent 2020-04-23 11:18:23 +02:00
662d12df68 Add sources 2020-04-22 17:49:58 +02:00