Commit Graph

1044 Commits

Author SHA1 Message Date
Nicolai Ort c1bbda51f0 Added new "bulk" endpoint
ref #168
2021-03-23 18:16:55 +01:00
Nicolai Ort 3c69f8c4a8 Adjsuted endpoint 2021-03-19 17:32:46 +01:00
Nicolai Ort f347b7ad49 Updated tests 🧪
continuous-integration/drone/pr Build is passing Details
ref #163
2021-03-18 14:05:13 +01:00
Nicolai Ort fbdadbef1f The basic bugfix 🐞
ref #163
2021-03-18 14:00:14 +01:00
Nicolai Ort 1fa3fa75ee Fixed wrong error type 👀👀
continuous-integration/drone/pr Build is passing Details
ref #160
2021-03-17 19:37:35 +01:00
Nicolai Ort c8882ae6a1 Removed duplicate openapi declarations 🗑
continuous-integration/drone/pr Build is failing Details
ref #160
2021-03-17 19:33:44 +01:00
Nicolai Ort 673e896aa3 Added missing discription
ref #160
2021-03-17 19:31:09 +01:00
Nicolai Ort 0ed7f78b2c Fixed missing renameing🛠
ref #160
2021-03-17 19:30:08 +01:00
Nicolai Ort 1d38d308ad Changed the method of getting a parameter from the headers🛠
ref #160
2021-03-17 19:29:12 +01:00
Nicolai Ort d709ee7479 Now defining security per endpoint 🔐
ref #160
2021-03-17 19:25:49 +01:00
Nicolai Ort aae042c041 Now auto-etting the station token🔥🔥🔥
ref #160
2021-03-17 19:24:25 +01:00
Nicolai Ort 1f32ed0727 Marked station as optional (quality of life improvements incoming)
ref #160
2021-03-17 19:22:04 +01:00
Nicolai Ort 289f9e2196 Added comments✏
ref #160
2021-03-17 19:21:35 +01:00
Nicolai Ort a8ea4fa659 Fixed trackscan vaildation
ref #160
2021-03-17 19:16:42 +01:00
Nicolai Ort 46b7aceb0b Scanauth return objects 2021-03-17 17:40:01 +01:00
Nicolai Ort 94001a48f1 Updated description
continuous-integration/drone/pr Build is passing Details
ref #157
2021-03-17 16:50:48 +01:00
Nicolai Ort 2cb7ec7317 As requested by @philpp
continuous-integration/drone/pr Build is passing Details
ref #157
2021-03-17 16:49:19 +01:00
Nicolai Ort 757332ed2b Added tests for the new endpoint
continuous-integration/drone/pr Build is passing Details
ref #157
2021-03-17 11:51:31 +01:00
Nicolai Ort 8ba7ee1d48 Now adding station id to headers of request for scan auth
ref #157
2021-03-17 11:45:40 +01:00
Nicolai Ort c5178e0181 Added scanstation me endpoint
ref #157
2021-03-17 11:44:54 +01:00
Nicolai Ort bf1ec976e3 Added selfservice forgott positive tests
continuous-integration/drone/pr Build was killed Details
ref #154
2021-03-06 14:12:46 +01:00
Nicolai Ort d0a7e34de8 Added all "negative" tests
ref #154
2021-03-06 14:08:39 +01:00
Nicolai Ort 08957d4dc2 Updated to new responsetype
ref #154
2021-03-06 14:02:58 +01:00
Nicolai Ort 1d762f5662 Renamed test
ref #154
2021-03-06 13:57:25 +01:00
Nicolai Ort a95a9b4ec4 Added first selfservice forgotten test
ref #154
2021-03-06 13:56:55 +01:00
Nicolai Ort e5dab3469c Changed endpoint url to avoid conflicts
ref #154
2021-03-06 13:56:34 +01:00
Nicolai Ort c01233b4d6 Added console logging when a testing env get's discovered
ref #154
2021-03-06 13:51:24 +01:00
Nicolai Ort 92920273be Adjusted tests for the new testing env
ref #154
2021-03-06 13:51:07 +01:00
Nicolai Ort 6bb3ae8ba9 Mailer now ignores mailing erros when env is set to test
ref #154
2021-03-06 13:44:10 +01:00
Nicolai Ort 3f372123fd Added testing env check
ref #154
2021-03-06 13:41:10 +01:00
Nicolai Ort a3437475ca Runner controller now uses the Mailer functions
ref #154
2021-03-06 13:38:37 +01:00
Nicolai Ort 83765136cc Added mailer functions
ref #154
2021-03-06 13:36:12 +01:00
Nicolai Ort e26b7d4923 Implemented the "real" errors
ref #154
2021-03-06 13:32:36 +01:00
Nicolai Ort e7f0cb45c9 Added not found error logic
ref #154
2021-03-06 13:29:44 +01:00
Nicolai Ort ffcd45e572 Updated request timeout
ref #154
2021-03-06 13:24:43 +01:00
Nicolai Ort d7099717c2 Created basic endpoint for user forgotten mails
ref #154
2021-03-06 13:23:01 +01:00
Nicolai Ort 66d6023335 Added last reset requested timestamp to runners
ref #154
2021-03-06 13:15:27 +01:00
Nicolai Ort 82c65b632c Added scans returns 200 test
continuous-integration/drone/pr Build is passing Details
ref #151
2021-03-04 16:40:05 +01:00
Nicolai Ort ae7d617690 Updated auth reset test for new mailer
ref #151
2021-03-04 16:35:30 +01:00
Nicolai Ort a5d2a6ecd3 Added locale to pw reset endpoint
ref #151
2021-03-04 16:25:23 +01:00
Nicolai Ort bb9bad6d90 Now checking for mails being set
ref #151
2021-03-04 16:19:19 +01:00
Nicolai Ort ada679823c Removed useless functions and updated comments
ref #151
2021-03-04 16:13:36 +01:00
Nicolai Ort 9a1678acf0 Now using mailer as static funtion
ref #151
2021-03-04 16:11:35 +01:00
Nicolai Ort 485c247cd3 Removed (now useless) mail controller
ref #151
2021-03-04 16:11:21 +01:00
Nicolai Ort ddea02db57 Added new mailer settings to config
ref #151
2021-03-04 16:11:05 +01:00
Nicolai Ort 1551a444ba Added the new mailer code
ref #151
2021-03-04 16:10:43 +01:00
Nicolai Ort f289afd8bc Updated mail errors
ref #151
2021-03-04 16:10:26 +01:00
Nicolai Ort c2fdfeed4f Removed mail templates
ref #151
2021-03-04 15:54:47 +01:00
Nicolai Ort 0342757d92 Removed mail config
ref #151
2021-03-04 15:54:27 +01:00
Nicolai Ort 0fcc729b56 Removed old mailer code
ref #151
2021-03-04 15:51:05 +01:00
Nicolai Ort a2c97a11a3 Laptime is now a part of the response
ref #151
2021-03-01 16:59:36 +01:00
Nicolai Ort aa833736d3 Trackscans now have a laptime that get's calculated on creation
ref #151
2021-03-01 16:58:34 +01:00
Nicolai Ort 771a205fe6 Added new selfservice scans endpoint
ref #151
2021-03-01 16:49:37 +01:00
Nicolai Ort 6074ac5b3a Added selfservice scan response class
ref #151
2021-03-01 16:47:54 +01:00
Nicolai Ort 030b2255d4 Added another resonse type
ref #151
2021-03-01 16:47:05 +01:00
Nicolai Ort f7f6df41ff Added new selfservice response type
ref #151
2021-03-01 16:36:36 +01:00
Nicolai Ort aaec09d2ab Fixed wrong body acceptance type
continuous-integration/drone/pr Build is passing Details
ref #146
2021-02-26 17:32:26 +01:00
Nicolai Ort 5d6c8c957a Quick bugfix 2021-02-25 20:33:00 +01:00
Nicolai Ort 28ef139a70 Added tests for the new org selfservice endpoints
continuous-integration/drone/pr Build is passing Details
ref #146
2021-02-24 18:32:56 +01:00
Nicolai Ort 656f63dfd5 Added selfservice org info endpoint
ref #146
2021-02-24 18:23:08 +01:00
Nicolai Ort ba3b5eeefc Added selfservice org response model
ref #146
2021-02-24 18:20:31 +01:00
Nicolai Ort ba396e0eba Added selfservice team response model
ref #146
2021-02-24 18:18:10 +01:00
Nicolai Ort 3c11d88557 Added new response types
ref #146
2021-02-24 18:17:30 +01:00
Nicolai Ort cc869f69ad 🚀Bumped version to v0.4.5
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-02-09 19:18:46 +01:00
Nicolai Ort bdcfce88cb Now all /usergroups endpoints return ResponseUserGroup
continuous-integration/drone/pr Build is passing Details
ref #143
2021-02-09 18:27:11 +01:00
Nicolai Ort 416f2a1366 The ResponseUserGroup now returns their permisssions as a string array
ref #143
2021-02-09 18:26:22 +01:00
Nicolai Ort 0c9867d706 Implemented /groups/permissions endpoint
ref #143
2021-02-09 18:18:00 +01:00
Nicolai Ort 90e1ad7db7 Adjusted test for the new response depth
continuous-integration/drone/pr Build is passing Details
ref #140
2021-02-08 16:51:09 +01:00
Nicolai Ort 906a1dc9e7 The group/runners endpoints now also deliver the runner's group's parentGroup
ref #140
2021-02-08 16:48:20 +01:00
Nicolai Ort 5872c6335b Adjusted test for the new response depth
ref #140
2021-02-08 16:46:07 +01:00
Nicolai Ort 701706c028 Now loading runner's group's parentgroup with every runner controller request
ref #140
2021-02-08 16:40:17 +01:00
Nicolai Ort 656d564baa 🚀Bumped version to v0.4.3
continuous-integration/drone/push Build is passing Details
2021-02-07 13:40:32 +01:00
Nicolai Ort 8f0a396dd0 Bugfix for @lfk/frontend/#43
continuous-integration/drone/pr Build is passing Details
2021-02-07 13:37:01 +01:00
Nicolai Ort f4f621973a Added imprint and privacy to the api spec
ref #135
2021-02-02 15:07:33 +01:00
Nicolai Ort bcad691045 Added new url env vars to config
ref #135
2021-02-02 15:04:09 +01:00
Nicolai Ort ff7406e71a Cleaned up realations regarding response classes
continuous-integration/drone/pr Build is passing Details
ref #132
2021-01-30 16:19:42 +01:00
Nicolai Ort 8dc2810c0c Adjusted tests for the new responseType parameter (part 3)
ref #132
2021-01-30 16:19:20 +01:00
Nicolai Ort ff8af090e3 Adjusted tests for the new responseType parameter (part 2)
ref #132
2021-01-30 15:39:39 +01:00
Nicolai Ort bcc15e4286 Adjusted tests for the new responseType parameter (part 1)
ref #132
2021-01-29 18:46:15 +01:00
Nicolai Ort 2a87819486 Fixed typos and missing types
ref #132
2021-01-29 17:06:57 +01:00
Nicolai Ort 9d5e486c6d Implemented the interface in all responses
refr #132
2021-01-29 17:06:43 +01:00
Nicolai Ort e44cc4c4cb Added a Response interface
ref #132
2021-01-29 16:49:19 +01:00
Nicolai Ort 581ca5ff6c Added Responseobjecttype enum
ref #132
2021-01-29 16:45:23 +01:00
Nicolai Ort 38223b194b Merge branch 'dev' into feature/124-testmail
continuous-integration/drone/pr Build is passing Details
2021-01-27 17:47:29 +01:00
Nicolai Ort bd1813a0e8 Merge branch 'dev' into feature/118-emails
continuous-integration/drone/pr Build is passing Details
2021-01-27 16:45:17 +00:00
Nicolai Ort ae74b3963f Added test mail sending test
continuous-integration/drone/pr Build is passing Details
ref #124
2021-01-27 12:03:02 +01:00
Nicolai Ort 54ed313342 Implemented the test-mail endpoint via a new mailcontroller
ref #124
2021-01-27 11:59:32 +01:00
Nicolai Ort ad4b903c25 Added a Mail permisssion target
ref #124
2021-01-27 11:53:33 +01:00
Nicolai Ort 9bd7636a23 Added comments
ref #124
2021-01-27 11:37:46 +01:00
Nicolai Ort b94179e3ca Added a test mail sending function
ref #124
2021-01-27 11:28:27 +01:00
Nicolai Ort 827002989e Added test mail templates
ref #124
2021-01-27 11:28:02 +01:00
Nicolai Ort 69417e93c0 Added get runners by team test
continuous-integration/drone/pr Build is passing Details
ref #125
2021-01-26 20:13:39 +01:00
Nicolai Ort f71a22f4dd Added get runners by org test
ref #125
2021-01-26 20:12:14 +01:00
Nicolai Ort 570c34bed0 Created the organizations/runners endpoint
ref #125
2021-01-26 20:06:54 +01:00
Nicolai Ort 7be2971a9e Created the runnerTeam/runners endpoint
ref #125
2021-01-26 19:57:35 +01:00
Nicolai Ort b92f633d68 Now also sending txt mail body
continuous-integration/drone/pr Build is passing Details
ref #118
2021-01-26 18:45:19 +01:00
Nicolai Ort d3647e3399 Added a txt variant of the pw-reset mail
ref #118
2021-01-26 18:41:50 +01:00
Nicolai Ort 389e423850 Cleaned up the replacements
ref #118
2021-01-26 18:41:21 +01:00
Nicolai Ort 46af786516 Fixed missing app_url protocol
ref #118
2021-01-26 18:31:34 +01:00
Nicolai Ort b4c117b7dc Fixed wrong file location
ref #118
2021-01-26 18:31:17 +01:00
Nicolai Ort 5cade25eeb Translated the pw reset mail to english
ref #118
2021-01-26 18:17:52 +01:00
Nicolai Ort fb77f4d798 Renamed the template
ref #118
2021-01-26 18:09:27 +01:00
Nicolai Ort c116338cd7 Added pw reset template provided by @philipp
ref #118
2021-01-26 18:09:00 +01:00
Nicolai Ort 979d36ea91 Password reset now enforces email
ref #118
2021-01-26 18:07:56 +01:00
Nicolai Ort c43334bf96 The auth tests now use mail to identify the user
ref #118
2021-01-26 18:07:42 +01:00
Nicolai Ort 71c4caae8b Removed bs console.log
ref #118
2021-01-26 17:55:41 +01:00
Nicolai Ort e26744b792 Implementes mail sending on pw reset request
ref #118
2021-01-26 17:35:03 +01:00
Nicolai Ort d02e9dec56 Removed tests working directly with the old pw-reset response
ref #118
2021-01-26 17:28:20 +01:00
Nicolai Ort 637975305f Implemented a basic mailer with reset link sending
ref #118
2021-01-26 17:21:18 +01:00
Nicolai Ort c418603423 Added the first mail error
ref #118
2021-01-26 17:20:55 +01:00
Nicolai Ort 470703c4de Added env vars
ref #118
2021-01-26 17:20:33 +01:00
Nicolai Ort e260e16d66 Merge branch 'feature/118-emails' of git.odit.services:lfk/backend into feature/118-emails 2021-01-26 16:10:26 +01:00
Nicolai Ort 6b0155f014 Added a folder for the mail templates
ref #118
2021-01-26 16:10:24 +01:00
Nicolai Ort 33890b544b Added a folder for the mail templates
ref #118
2021-01-26 16:10:02 +01:00
Nicolai Ort d7ea928714 Added mail env vars
ref #118
2021-01-26 16:09:11 +01:00
Nicolai Ort cf012c0b7e Added a barebones class for handleing mail stuff
ref #118
2021-01-26 16:05:55 +01:00
Nicolai Ort cd7e9b86b4 Renamedpermisssions from *Organisation* to *Organization*📝
continuous-integration/drone/pr Build is passing Details
ref #117
2021-01-24 18:43:29 +01:00
Nicolai Ort c6c643ecf1 Renamed files and classed from *Organisation* to *Organization*📝
ref #117
2021-01-24 18:40:46 +01:00
Nicolai Ort ef15d0d576 Changed organisation* to organization* in descriptions, comments and endoints ✏
ref #117
2021-01-24 18:34:15 +01:00
Nicolai Ort b42f0722d7 Merge branch 'dev' into feature/112-selfservice_registration
continuous-integration/drone/pr Build is passing Details
2021-01-21 20:02:23 +01:00
Nicolai Ort 45c8bb83be Fixed tests testing for a old responseclass
ref #112
2021-01-21 20:01:44 +01:00
Nicolai Ort 6469e3bc97 Fixed wrong error getting thrown
ref #112
2021-01-21 19:51:40 +01:00
Nicolai Ort 10f98e9c99 Bugfix: turned old entity in response to responseclass
ref #112
2021-01-21 19:49:11 +01:00
Nicolai Ort e5b6f650b2 Added registration invalid company tests
ref #112
2021-01-21 19:48:45 +01:00
Nicolai Ort 3b2ed3f0f2 Resolved missing relation
ref #112
2021-01-21 19:46:46 +01:00
Nicolai Ort 20e102ec5c Added registration valid company tests
ref #112
2021-01-21 19:46:32 +01:00
Nicolai Ort 5a003945ac Updated response schema error to a more fitting one
ref #112
2021-01-21 19:34:27 +01:00
Nicolai Ort 29aeb046de Added registration invalid company tests
ref #112
2021-01-21 19:34:11 +01:00
Nicolai Ort 72941da1cb Added registration valid citizentests
ref #112
2021-01-21 19:33:55 +01:00
Nicolai Ort 81d2197a3e Added registration invalid citizen tests
ref #112
2021-01-21 19:22:26 +01:00
Nicolai Ort 9dd9304a71 Citizen registration now returns tokens
ref #112
2021-01-21 19:17:40 +01:00
Nicolai Ort 0c87906cc3 Added selfservice get positive test
ref #112
2021-01-21 19:17:25 +01:00
Nicolai Ort 1227408407 Fixed fluctuating test bahaviour
ref #112
2021-01-21 19:10:59 +01:00
Nicolai Ort f8d7544517 Marked param as optional (default: false)
ref #112
2021-01-21 19:08:43 +01:00
Nicolai Ort a9843ed459 Updates old tests to the new ss-ktokens
ref #112
2021-01-21 19:08:21 +01:00
Nicolai Ort 46f9503543 Fixed typo
ref #112
2021-01-21 18:45:15 +01:00
Nicolai Ort 6434b4dfce Added check for empty token for runner self-service get
ref #112
2021-01-21 18:12:53 +01:00
Nicolai Ort e964a8ed44 Added self-service get invalid tests
ref #112
2021-01-21 18:12:29 +01:00
Nicolai Ort c39a59e54e Implemented runner selfservice token generation
ref #112
2021-01-21 18:03:48 +01:00
Nicolai Ort 34c852b12a Specified uft-8 format for string
ref #112
2021-01-21 17:54:11 +01:00
Nicolai Ort 7b00b19fce MAde uuid column unique
ref #112
2021-01-21 17:52:03 +01:00
Nicolai Ort ad446500f9 Implemented registration key generation
ref #112
2021-01-21 17:48:13 +01:00
Nicolai Ort d490247d1e Implemented a registration key for organisations
ref #112
2021-01-21 17:30:43 +01:00
Nicolai Ort dee36395a6 Citizen runners now have to provide an email address for verification
ref #112
2021-01-21 17:19:04 +01:00
Nicolai Ort 6df195b6ec Created a citizenrunner selfservice create action
ref #112
2021-01-21 17:18:25 +01:00
Nicolai Ort 946efef252 Updated Method of removeing the team of citizen runners
ref #112
2021-01-21 17:01:56 +01:00
Nicolai Ort 73b1114883 Added openapi description
ref #112
2021-01-21 16:48:53 +01:00
Nicolai Ort 1b5465bea8 Implemented the citizen runner self-registration endpoint
ref #112
2021-01-21 16:47:13 +01:00
Nicolai Ort 5288c701c1 Implemented the basics for the runner selfservice registration endpoint
ref #112
2021-01-21 16:43:04 +01:00
Nicolai Ort 10af1ba341 Implemented a runner selfservice registration creation action
ref #112
2021-01-21 16:40:47 +01:00