Commit Graph

223 Commits

Author SHA1 Message Date
Kai Jan Kriegel
27539429f7 enable mutistage auth 2022-03-16 05:42:19 +01:00
Nadja Reitzenstein
c317101b93 Merge remote-tracking branch 'origin/feature/desfire-auth' into feature/api-0.3
* origin/feature/desfire-auth:
  update desfire crate to version on crates.io
  working Desfire auth in the api!
  fix stupid logic error
  initial integration of the X-FABFIRE mechnism
2022-03-15 18:58:51 +01:00
Nadja Reitzenstein
75c449c83a Fix auth 2022-03-13 23:58:03 +01:00
Nadja Reitzenstein
15f31ffd7c Update API 2022-03-13 23:31:00 +01:00
Kai Jan Kriegel
5c5c9710c5 working Desfire auth in the api! 2022-03-12 10:45:09 +01:00
Kai Jan Kriegel
37db05a557 fix stupid logic error 2022-03-12 00:51:42 +01:00
Kai Jan Kriegel
4611ed5b48 initial integration of the X-FABFIRE mechnism
Integrates the fabfire mechanism for use with the jorisdevice and desfire cards
2022-03-12 00:45:59 +01:00
Nadja Reitzenstein
0531156b9e Improve TLS support 2022-03-09 02:40:38 +01:00
Nadja Reitzenstein
c8623fd62b Fixes warnings 2022-03-02 17:28:41 +01:00
Nadja Reitzenstein
e130e59651 Port to rsasl2
Closes #45
2022-03-02 17:21:22 +01:00
Nadja Reitzenstein
4306b5b691 More cleanup.
Also, this MR closes #48
2022-02-26 14:45:17 +01:00
Nadja Reitzenstein
ea863e71af Makes rumqttc futures run on the tokio runtime as required. 2022-02-26 14:30:06 +01:00
Nadja Reitzenstein
e9b1ba1f50 Use our own MQTT URL dissector so existing configs don't break 2022-02-26 14:16:46 +01:00
Nadja Reitzenstein
e6cb1a958d Fixing more warnings 2022-02-26 14:02:47 +01:00
Nadja Reitzenstein
68418161d7 Replaces paho_mqtt with rumqttc 2022-02-26 14:01:06 +01:00
Nadja Reitzenstein
53cdfeda5d Fix warnings 2022-02-26 14:00:00 +01:00
Nadja Reitzenstein
a7d30930ba Don't default to MQTT 3.1 either 2022-02-26 11:31:46 +01:00
Nadja Reitzenstein
337e8aa563 Sets a 20 second MQTT keepalive intervall 2022-02-26 11:31:46 +01:00
Nadja Reitzenstein
2777645205 Make MQTT client try to reconnect on connection lost or disconnect 2022-02-26 11:31:45 +01:00
Nadja Reitzenstein
89b292a8ac Disclose machines that are used by yourself 2022-02-26 11:31:24 +01:00
Nadja Reitzenstein
4858a6a6fb Implement a simple audit log 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
bf9fadbf74 Implement getAPIVersion and getServerRelease methods 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
0da3213395 Improve documentation around example setup
Fixes: #38
2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
f524079914 Implement categories support 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
17005c0536 Properly parse optional config elements 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
a0c280eae4 Export some more version metadata 2022-01-17 18:36:22 +01:00
Nadja Reitzenstein
f397e1e636 Better tls connection handling with smol::io::split 2021-12-09 21:54:57 +01:00
Nadja Reitzenstein
83f5fe8265 Implement TLS handling 2021-12-09 20:54:54 +01:00
Nadja Reitzenstein
a09c3d3880 Fix #29 2021-12-07 23:02:26 +01:00
Nadja Reitzenstein
6b88191dc5 Set previous user on all state changes if required
Fixes: #30
2021-12-05 23:43:36 +01:00
Nadja Reitzenstein
6e91295cc0 Fix URN 2021-12-05 23:38:05 +01:00
Nadja Reitzenstein
6d3e08955a Config improvements and make shellies have a topic parameter 2021-12-05 19:23:35 +01:00
Nadja Reitzenstein
eeb0ff306b Fix Machines using their name instead of their id 2021-12-05 18:53:02 +01:00
Nadja Reitzenstein
47781b445e Make machine correctly load state and set previous/current use in API 2021-12-01 15:46:52 +01:00
Nadja Reitzenstein
9fcb7664aa Also catch SIGQUIT and SIGTERM and clean up properly 2021-11-26 03:42:30 +01:00
Nadja Reitzenstein
200179f621 Returns current user 2021-11-26 02:21:35 +00:00
Nadja Reitzenstein
76a1def456 Implement getting a machine by URN 2021-11-26 00:08:24 +01:00
Nadja Reitzenstein
80df913089 Also set URN and wiki links on machine lists 2021-11-25 23:45:00 +01:00
Nadja Reitzenstein
7bcb0712ae Implement wiki and URN links 2021-10-20 09:43:39 +02:00
Nadja Reitzenstein
14402d627c Be consistent in the api 2021-09-21 22:57:50 +02:00
Nadja Reitzenstein
ba73fe80c5 Re-enable MQTT 2021-09-21 18:45:35 +02:00
Nadja Reitzenstein
04052b6193 better output and examples 2021-09-21 09:22:54 +02:00
Nadja Reitzenstein
aa58657122 Let's not break, shall we? ^^' 2021-09-21 09:06:49 +02:00
Nadja Reitzenstein
bd635d97ac Make work 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
f4fead00e6 Only return caps the user can have 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
27791ed19b Move around Ownership until it compiles 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
e678e67d32 Pointerwise moving is even easier 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
d29b0c207d Unused lifetime parameter are unused. 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
4e3bb44040 Start the user API 2021-09-21 07:54:18 +02:00
Nadja Reitzenstein
006ae0af68 Better user 2021-09-21 07:54:18 +02:00