You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device registry would keep track of devices that connect to ownCloud (e.g. mobile clients, desktop clients) and stores a unique ID of the device. It can also be used to identify current browser sessions.
Possible use cases
per-device authentication tokens (login with normal credentials once to fetch a token which is only authorized to do a subset of actions (e.g. webdav only access), limited to a particular device
Targetted remote wipe
Device statistics
Log out remote browser sessions
(This is mostly based from an old proposal that I made in 5.0 times and that I didn't want to get lost. It could fit neatly e.g. with #10400. This also solves the remote wipe issue.)
Stories implemented
As an administrator, I want to be able to control/view permanently syncing devices and wipe them
As a user, I do not want to reauthenticate permanently syncing services only because my user password changed.
We were thinking of sending something like the locally set hostname (e.g. "Markus-MacBookPro") inside the user agent for logging purposes (client issue).
Now I'm thinking we could also send this in a HTTP header and it then gets saved into this registry.
Maybe this is also something that can be reused inside the activity log (@nickvergessen@dragotin)
I'm wondering: The table authtoken has name which is for the User-Agent. How would we put in a user defined description?
E.g. "Markus' MacBook" or 'Christop's Android" or whatever.
Hm, maybe something for later.
Please feel free to assign this yourself and close it.
@guruz the name attribute is used for the user agent of browser session tokens and for the device name of device tokens. You can already create a device token called "Markus' MacBook" in the personal settings or via the /token/generate route:
Activity
nickvergessen commentedon Oct 2, 2015
Other story implemented
MorrisJobke commentedon Oct 2, 2015
I would also do this for browsers. This would enhance the security because we can "remote logout a browser session".
karlitschek commentedon Oct 2, 2015
good idea. Something for the future :-)
danimo commentedon Oct 2, 2015
@nickvergessen @MorrisJobke : Added, thanks!
[-]Device registry[/-][+]Device/Session registry[/+]DeepDiver1975 commentedon Oct 2, 2015
this will allow us to invalidate sessions on password change #18410
MTRichards commentedon Oct 2, 2015
Yep, good stuff. I have had it in the backlog for a while, just need to move some stuff off the plate to get this on the plate. Or get a second plate.
guruz commentedon Apr 8, 2016
We were thinking of sending something like the locally set hostname (e.g. "Markus-MacBookPro") inside the user agent for logging purposes (client issue).
Now I'm thinking we could also send this in a HTTP header and it then gets saved into this registry.
Maybe this is also something that can be reused inside the activity log (@nickvergessen @dragotin)
ChristophWurst commentedon May 30, 2016
This is what I added with pluggable auth, isn't it?
ref #24189
guruz commentedon Jun 5, 2016
@ChristophWurst Yep indeed looks like it :)
I'm wondering: The table
authtokenhasnamewhich is for the User-Agent. How would we put in a user defined description?E.g. "Markus' MacBook" or 'Christop's Android" or whatever.
Hm, maybe something for later.
Please feel free to assign this yourself and close it.
(If @danimo does not disagree)
ChristophWurst commentedon Jun 5, 2016
@guruz the
nameattribute is used for the user agent of browser session tokens and for the device name of device tokens. You can already create a device token called "Markus' MacBook" in the personal settings or via the/token/generateroute:core/core/Controller/TokenController.php
Lines 60 to 88 in c0a91dd
lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.