Skip to content

Implement service tokens #217

@mgaonach

Description

@mgaonach

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions