nextcloud / nextcloud/server

Enhance the application passwords handling from the command line

Open
#29,001 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: authentication feature: occ feature: users and groups
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

The application passwords handling from the command line can be improved by adding more commands and by enhancing the existing one (user:add-app-password)

This would enable the administrator to centralize the application password operations at the command line and pave the way for application passwords handling automation.

I suggest the following enhancements:

  1. add a delete-app-password: this deletes a given application password. This can be also extended to delete all the passwords for a given user.
  2. add a list-app-password: this lists the application passwords
  3. let the user define the app password name (now it is 'cli')
  4. give the option to json-format the output
  5. let the user define the app password lifetime (ex. 10 minutes)

This would complement the expected fix of the defect #26563

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing user:add-app-password command and reviewing defect #26563. Define the command names and options for deleting, listing, naming, JSON output, and lifetimes, then verify that each requested application-password operation is available from the command line.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.