Yannick Bungers
9c38a339df
Added types and removed requires from app.ts
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:19 +02:00
David Mehren
e0192b5652
history.ts: Fix 🚑 getHistory
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:19 +02:00
David Mehren
2408aef54c
dmpWorker.ts: Wrap process.send
in a function to not lose this
🐛
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:18 +02:00
David Mehren
d89cf23fdd
revision.ts: Remove .connected from dmpWorker check in sendDmpWorker.
...
Why did it appear there? Nobody knows...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:18 +02:00
David Mehren
3f87539d7d
dmpWorker.ts: Fix check for attributes on data object
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:18 +02:00
David Mehren
dd63f789f7
auth/email: Redirect on (un)successful registration
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:18 +02:00
David Mehren
3ea64b2308
models/revision.ts: Fix primary key default value
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:18 +02:00
Yannick Bungers
c24023437f
Fixed Bug with multiple messages
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
David Mehren
dc3a3f2994
Migrate editor-socketio-server.js to TypeScript
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
David Mehren
c7478157e2
models/revision.ts: Use .js extension to load dump worker.
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
David Mehren
73d4023155
note/actions.ts: Formatting fixes and lint exceptions
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
Philip Molares
5a1a25dda4
added auth/oauth2.ts
...
added oauth2 to ProviderEnum
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
David Mehren
287148f1e8
auth/google: Fix weird type error 🏷️ 🐛
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:17 +02:00
David Mehren
6e8ea859cd
app.ts: Use imports instead of require for middlewares.
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
David Mehren
cc5db72369
auth/utils.ts: Fix type of done callback 🐛
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
David Mehren
5d3c636c14
auth/email: Fix passport import 🐛
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
Yannick Bungers
992affae45
fixed google
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
Yannick Bungers
83ef1de792
Refactored OpenID to typescript
...
Added OpenID in auth
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
Philip Molares
4e74998372
fixed auth/google import
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:16 +02:00
Philip Molares
5c9bef36d1
Migrate auth/ldap.js to TypeScript
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
Yannick Bungers
2df8e1687b
Refactored google to Typescript
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
Philip Molares
7eb27e012f
fixed auth/email import
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
Philip Molares
dc58e8a65b
added auth/saml.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
David Mehren
1903ba12af
auth/index.ts: Refactor Gitlab & Dropbox middlewares
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
David Mehren
1353e61e87
auth/gitlab: Migrate to AuthMiddleware
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
Philip Molares
3c216795e7
added all @types for passport-strategies as devDependencies
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:15 +02:00
Yannick Bungers
0a678f808f
Refactored Auth/Email to typescript
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
Yannick Bungers
aaca777467
Refactored dropbox to typescript
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
Yannick Bungers
f628b85c05
Added flash function to Request interface
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
David Mehren
e4b2acf53e
auth/github: Migrate to AuthMiddleware
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
David Mehren
dd55c947cc
auth/facebook: Migrate to AuthMiddleware
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
Yannick Bungers
620468e843
Refactored dropbox.js -> dropbox.ts
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
Philip Molares
c075eb769f
added auth/twitter.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:14 +02:00
David Mehren
e5961336b7
Add middleware/index.ts and remove default exports
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
David Mehren
6de6aa1d89
Add AuthMiddleware interface
...
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
Yannick Bungers
8a36aaaeb4
Fixed export
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
Yannick Bungers
89563110c5
Remove CSPDirectives as own Type
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
Philip Molares
8ce724175b
check if req.user exists
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
Philip Molares
395d9c671b
used the new named AuthRouter in app.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:13 +02:00
Philip Molares
5c49f42067
better typing in auth/index.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
3b7bab47be
used the new named UserRouter in app.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
ef6632cac9
added userRouter.ts
...
- added @types/passport
- added @types/archiver
- types all req and res arguments
- renamed unused argument next to _
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
069fa028c6
made express.user of type User form models/user.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
f550c5b1b2
added auth/utils.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
be65042792
added auth/index.ts
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Yannick Bungers
1b7cfe64eb
Fixed wrong import
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:12 +02:00
Philip Molares
a642cfd22a
fixed bug with minio.ts
...
- the provider can't be meaningfully initialized if this UploadProvider is not configured
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:11 +02:00
Yannick Bungers
6cbd436454
Refactored middleware -> Typescript
...
Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:11 +02:00
Philip Molares
a36c36d86a
removed AuthProvider
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:11 +02:00
Philip Molares
c49039c48c
removed Utils import and added individual method import instead
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
2020-04-25 16:04:11 +02:00