Commit Graph
35 Commits
Author SHA1 Message Date
Laurin cf20f11ec1 fixed inconsitencies with NotFoundError 2023-01-02 18:56:12 +01:00
Laurin 28d48cd178 restructured default admin creation 2022-10-20 16:08:10 +02:00
Laurin ff13a95eac added default admin logic 2022-10-20 16:08:10 +02:00
Stephan 87f5fa2e91 Add various participant and role controllers
+ Fix issues
2022-06-09 16:23:54 +02:00
Stefan-5422 1a6c780de5 [create-pull-request] push formatted files 2022-06-07 18:22:55 +00:00
Laurin 7655eebcd9 patched review suggestions and discovered bugs 2022-06-07 03:47:37 +02:00
Stephan 94b2030c8f Return false on controlled 2022-06-06 21:17:44 +02:00
Stephan d1f41c8927 Only throw when the auth is not controlled 2022-06-06 21:15:15 +02:00
Laurin 0b7756d428 small fixes 2022-06-06 19:31:54 +02:00
Laurin 60100273fb added STANDARD admin responsibility 2022-06-06 18:34:59 +02:00
Stephan 339ecff938 FIX: RequireAuthentication now throws on wrong auth type 2022-06-05 21:42:47 +02:00
Laurin 0f0da062c6 patched issues found during testing 2022-06-03 19:57:43 +02:00
Stephan eb20ff4965 Refractor auth logic
+ Add possibility (_requireAdminAuthentication, _requireTeamleaderAuthentication) to make auth optional
+ Add possibility to combine multiple auth types into one function
2022-05-30 18:18:44 +02:00
Stephan cd0cb00106 Add requireResponsibleForGroup
+ Update controllers
2022-05-29 14:47:32 +02:00
Stefan-5422 93d77eeefa Added user_auth system
+ 1 Mega commit yay
2022-05-28 17:14:33 +02:00
Stephan 2a33b703bc Add methods for requiring more specific levels of teamleader auth
+ Add AuthError
2022-05-27 23:08:23 +02:00
Stephan a9c182cf64 Add teamleader authentication 2022-05-27 22:48:16 +02:00
Stefan c5e6568466 Merge branch 'main' into dev 2022-05-20 17:51:04 +02:00
Stephan bdfc15eab4 Add functionality to get media meta
+ Remove unused code
+ Fix misspelling
+ Fix error handling to handle errors with no status code
2022-05-18 08:27:11 +02:00
Stephan 3ec5f92429 Add controllers for 404 and the root endpoint 2022-05-17 16:16:26 +02:00
Stephan 6c5fd27a73 Merge pull request #45 from detleph/feature-endpoints
Add more endpoints
2022-05-03 14:58:01 +02:00
Stephan 8384a3eebb Add controller for roleSchemas (unfinished)
+ Refine error messages for role schemas
+ Add role schema routes
+ Add RESULT_SCHEMA DataType
+ Add SchemaError.isSchemaError() type guard
2022-05-01 18:18:48 +02:00
Stephan 72ee918f00 Add schema valiation
+ Using zod for validation
+ Add SchemaError
2022-05-01 17:18:55 +02:00
Stefan-5422 4ef5989c9a [create-pull-request] push formatted files 2022-04-29 12:23:23 +02:00
Stephan 9bafdebd31 Add function to create disciplines
+ Fix async errors
+ Extract name error
2022-04-29 10:35:39 +02:00
Stephan 6fb09b9f31 HOTFIX: next() only called when in development mode
+ Push fix, now the server should be working again
2022-04-29 10:25:13 +02:00
Stephan 51c744de26 Add debugging code
+ Small fix in the event controller
+ Add development flag to the dev container
2022-04-28 14:39:16 +02:00
Stephan 8bf18267d1 Fix: Add winston; And: Add custom error handlers
+ addCustomHandler()
+ removeCustomHandler()
2022-04-28 14:39:16 +02:00
Stephan 9ac4fb8efd Add logger to main
+ Remove whitespace
2022-04-28 14:39:16 +02:00
Stephan 9516b60d93 Add logger using winston
+ Add formats
+ Add debug and error log files
2022-04-28 14:39:16 +02:00
Stephan 382a42d439 Add basic error handling
+ Add express-async-errors package to handle async errors
+ Add ForwaradableError class (Base class for all project-specific errors)
+ Add defaultErrorHandler middleware which handles errors and sends info to the client
2022-04-28 14:39:16 +02:00
Stephan 08419d581b Update the admin revision on password change
+ Update type of revision to DateTime
2022-01-02 17:26:20 +01:00
Stephan 4fd8a4c978 Add reference to custom Request typings 2021-11-11 11:57:36 +01:00
Stephan 60f7c8fff5 Export requireAuthentication 2021-11-10 16:12:55 +01:00
Stephan c869863aea Add middleware to require authentication on an endpoint 2021-11-10 16:04:26 +01:00