-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
We need to have the possibility to create service tokens (used for syncronisation from MXCuBE for instance). These could be the using the same JWT token system as user tokens but with a longer expiration time, defined at creation.
The only difference is that it should not contain a personId as it should not be linked to a person (see if setting it to None or some dummy value like -1 would cause problems?)
These tokens could be created with a new route POST /auth/service by a logged in user with required permission (create_service_token) who specifies the required information:
- service name
- permissions
- expiration time