Commit graph

9 commits

Author SHA1 Message Date
Simon Goller
b4b926a8e4 Adjust shift plan based on authentication 2024-06-14 13:23:12 +02:00
Simon Goller
bd887cfd7b Add endpoint to get sales_person for current user 2024-06-12 12:04:41 +02:00
Simon Goller
91559224e5 Fix clippy findings 2024-06-06 08:08:30 +02:00
Simon Goller
506791fa6a Make auth-info endpoint machine readable 2024-06-05 22:30:09 +02:00
Simon Goller
ed609cf06c Cargo clippy and cargo fmt 2024-05-09 15:00:50 +02:00
Simon Goller
b0000c0117 Wrap Context with Autentication enum
Context should contain information which is required to get
the information if the service call is authenticated.  Context
could be the username for example.  But services call other
services internally and for this, authentication must not be
checked.  In this case, they can now pass Authentication::Full
which always successfully authenticates.
2024-05-09 14:58:19 +02:00
Simon Goller
bf94ec33de Basic rest implementation for connecting user to sales-person 2024-05-09 14:16:47 +02:00
Simon Goller
20828fb4a1 Add context reqruied later for authentication 2024-05-03 19:01:26 +02:00
Simon Goller
82e89baeeb Restructuring: Move permission code in separate modules 2024-04-30 15:06:12 +02:00