Server: Delete associated devices at once

Created on 7 Mar 2018  路  7Comments  路  Source: nextcloud/server

In the (personal) security section it is not possible to delete all connected devices in one go
but they must be eliminated individually,
this becomes penalizing when with tests made you find yourself eliminating 25 and passing devices,

immagine

you can implement the possibility to remove the associated devices all together?

sometimes I find the same device associated multiple times for testing

enhancement authentication

Most helpful comment

something like all selects, like box check and delete.

All 7 comments

cc @nickvergessen @ChristophWurst

Well I could imagine a checkbox way of deleting, but not sure it's worth the effort.

something like all selects, like box check and delete.

I have an a never ending list of these I can't delete them all

Nextcloud/00009 CFNetwork/811.5.4 Darwin/16.6.0

Nextcloud/00009 CFNetwork/811.5.4 Darwin/16.6.0

Looks like the macOS system (CalDAV or CardDAV integration in macOS itself9 :/ Seems it doesn't store the cookie and thus creates a new session on every check.

So this is a bug, although we check if a client does support cookies here: https://github.com/nextcloud/server/blob/eedfb0d8a419b121b655a2fa0957bdf2a0c30764/lib/private/User/Session.php#L433

Same issue here. MacOS/iOS CalDAV and CardDAV are throwing away cookies causing the oc_authtoken table to grow continuously over time. Currently the only feasible solution is to execute something like DELETE FROM oc_authtoken WHERE last_activity<=UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 day)); periodically via cronjob.

Maybe some new cron job could be introducted in Nextcloud for deleting authtokens which were unused for x days. Additionally an option to manually purge old sessions for users would be great.

Was this page helpful?
0 / 5 - 0 ratings