Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button to remove all App Passwords #11655

Open
simhnna opened this issue Oct 6, 2018 · 19 comments
Open

Add button to remove all App Passwords #11655

simhnna opened this issue Oct 6, 2018 · 19 comments

Comments

@simhnna
Copy link

simhnna commented Oct 6, 2018

I currently have 2598 App Passwords!
They are mostly created by the Android apps. I created an issue about that here

Anyhow, it would be nice to have a button to remove all app passwords. I know my case is extreme, and since I'm the admin I can just clear them in the database, but normal users should be able to just remove all passwords easily

@rullzer
Copy link
Member

rullzer commented Oct 8, 2018

I get the idea.
But I must ask. How on earth did you get so many app passwords?

@simhnna
Copy link
Author

simhnna commented Oct 8, 2018

I'm not sure how that happened. I created an issue in the Android client repository, as I guess it's an issue there. I have Cron jobs running, so I don't think I am suffering from a configuration error...

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Aug 20, 2020
@trueshanti
Copy link

it may not be worth a ticket , but cleaning that mess up without a possible selector is just pain .. so i guess some (f not all) users just leave it be - not sure if that can be exploited :-/

@szaimen

This comment has been minimized.

@trueshanti

This comment has been minimized.

@trueshanti
Copy link

i cannot see any new feature/function allowing me to multi-select (+all) and delete devices -- this issue is still unresolved

@szaimen

This comment has been minimized.

@trueshanti

This comment has been minimized.

@szaimen

This comment has been minimized.

@szaimen

This comment has been minimized.

@trueshanti

This comment has been minimized.

@trueshanti

This comment has been minimized.

@szaimen

This comment has been minimized.

@trueshanti

This comment has been minimized.

@trueshanti

This comment has been minimized.

@szaimen
Copy link
Contributor

szaimen commented Jun 25, 2021

I ask because in #27603 was reported that the usage of app-token fixes the creation of new authtokens...

@trueshanti
Copy link

I ask because in #27603 was reported that the usage of app-token fixes the creation of new authtokens...

i will test this, but i cannot "force" other users to only use app-token .. also , as user i can only address my own tokens, an adminview wouldnt be useful without the option to clear others' stale sessions ..

for all tokens/session in oc_authtoken 'last_activity' and 'last_check' have the same values

i may have to stick to mysql-cronjobs for now

@kesselb kesselb added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Jul 22, 2021
@nextcloud nextcloud deleted a comment from nextcloud-bot Jul 22, 2021
@raid1

This comment has been minimized.

@joshtrichards joshtrichards changed the title Feature Request: Add button to remove all App Passwords Add button to remove all App Passwords Oct 17, 2024
@joshtrichards
Copy link
Member

I won't close this since it's about a means for managing these for the user not the admin, but it's worth noting we now have occ commands for managing these.

See #40026 + nextcloud/documentation#12331

Including a delete parameter that can delete all tokens last used for a given date:

www-data@3493b083fd3c:~/html$ ./occ user:auth-tokens:delete --help
Description:
  Deletes an authentication token

Usage:
  user:auth-tokens:delete [options] [--] <uid> [<id>]

Arguments:
  uid                                      ID of the user to delete tokens for
  id                                       ID of the auth token to delete

Options:
      --last-used-before=LAST-USED-BEFORE  Delete tokens last used before a given date.
  -h, --help                               Display help for the given command. When no command is given display help for the list command
  -q, --quiet                              Do not output any message
  -V, --version                            Display this application version
      --ansi|--no-ansi                     Force (or disable --no-ansi) ANSI output
  -n, --no-interaction                     Do not ask any interactive question
      --no-warnings                        Skip global warnings, show command output only
  -v|vv|vvv, --verbose                     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants