Skip to content

Missing information about connected devices #8664

Description

@kaszuba

Hi

I cannot get the current connected devices list in Seafile:

  • in user settings i see:
    No linked devices. You have not accessed your files with any client (desktop or mobile) yet. Configure clients on your devices to access your data more comfortably.
  • in admin settings "/sys/devices/desktop/" i see:
    no connected devices
  • when enter direct on url "/sys/devices/desktop/" i got 404 and warn in seahub.log:
    [WARNING] django.request:253 log_response Not Found: /sys/devices/desktop/

Locally resources are connected on Linux, by client version 9.0.16, auth by SSO (authentik)
On server im use Seafile in docker, version 13.0.15

Bellow my investigation

  • react/js get data from /api2/devices/, which is generated by seahub.api2.views.DevicesView
  • DevicesView generate data from TokenV2 model
  • TokenV2 model have database table "api2_tokenv2", which is empty in my case, but i see tokens in "api2_token"
  • TokenV2 is created in seahub.api2.utils.get_token_v2
  • if im correct seahub.views.sso.client_sso_complete is used to generate new tokens on sso login, but TokenV2 is generated only for Shibboleth, other SSO use Token model

Am i correct that device list is avialable only for SSO Shibboleth, and there is not way to get device list for other SSO?
If so, is this a designed limitation or a bug?

regards, you made great software :)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions