Commit graph

13 commits

Author SHA1 Message Date
Simon Goller
20828fb4a1 Add context reqruied later for authentication 2024-05-03 19:01:26 +02:00
Simon Goller
9a367c9260 Move the error type test functions into its own module 2024-05-03 06:42:45 +02:00
Simon Goller
8f378472ea Add REST endpoint for slot 2024-05-02 23:25:04 +02:00
Simon Goller
82e89baeeb Restructuring: Move permission code in separate modules 2024-04-30 15:06:12 +02:00
Simon Goller
b964063dbb Finalize permission service 2024-04-29 06:29:25 +02:00
Simon Goller
d45ccf9523 REST servcie restructuring
App devices which implementation will be used.  For now,
the types of the implementations must be defined manually.
This is requied because the State in the REST endpoints must
contain a type which can provide all services.
2024-04-28 22:30:10 +02:00
Simon Goller
2931d37602 Fix clippy finding 2024-04-28 16:02:03 +02:00
Simon Goller
691eccc2a4 Create service and DAO layer for user-role-privilege system 2024-04-28 16:01:18 +02:00
Simon Goller
ab260120f2 Create the roles and privileges required for MVP 2024-04-27 15:43:59 +02:00
Simon Goller
3b20d12ba1 Add unit tests for the services 2024-04-27 00:03:15 +02:00
Simon Goller
926ac006e7 Return the username in a separate service
This allows us to use a service implementation which
returns a dummy user during development and the actual authenticated
user during production.  It also simplifies tests.
2024-04-26 22:41:44 +02:00
Simon Goller
789981ee92 Imporove datamodel
Tables now contain update_timestamp and update_process and
update_timestamp will be automatically set via a trigger.
Also the I removed the IDs from the tables as they are not
required for the auth system.  The names are the identifier.
2024-04-26 22:30:10 +02:00
Simon Goller
dccfa2d4cf Initial commit 2024-04-26 21:34:00 +02:00