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

Enable creation of app specific password via the CLI tool (occ) #10843

Closed
baldurmen opened this issue Aug 24, 2018 · 8 comments
Closed

Enable creation of app specific password via the CLI tool (occ) #10843

baldurmen opened this issue Aug 24, 2018 · 8 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: occ

Comments

@baldurmen
Copy link

Nextcloud version:
13.0.5

Hi!

App specific passwords are a great feature, but it would be very nice to to be able to generate them from the CLI too (occ).

For large deployments using webDAV mounts via davfs2, one should really use app specific passwords. At the moment, the only way I have to generate them is to log in as the user as the the web interface.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #2431 (App passwords vanish), #6075 (App Passwords not displayed ), #3228 (App passwords should be optional), #6717 (App password descriptions should be editable), and #6376 (App password restrictions for specific nextcloud apps).

@blizzz
Copy link
Member

blizzz commented Aug 25, 2018

@baldurmen correct, but the app password is also used as private key phrase to encrypt the main password. Therefore, being logged in is a requirement for generating those. I don't think there is a way around, unless you provide those information on cli too…

@blizzz
Copy link
Member

blizzz commented Aug 25, 2018

fyi @rullzer

@xatru42
Copy link

xatru42 commented Mar 9, 2020

coming across this topic during investigation how we could provision automatically users for webdav access (in combination with SAML2/LDAP backend)

@blizzz that raises the question how this is done when you have SAML2 authentication enabled - there is no password transferred from IdP to nextcloud that can be used to "open" the private key.

Is there a current description how nextcloud 18 works, e.g. something similar to:

https://rullzer.com/2018/09/05/improved-apppasswords-in-nextcloud-14/

Hence, I assume it should be possible (now) to add apppassword's for users via ./occ when the user pw isn't a dependency (anymore).

Cheers,
Xat

@rullzer
Copy link
Member

rullzer commented Mar 11, 2020

Yeah we could have that as an option in the SAML app I guess.

@xatru42
Copy link

xatru42 commented May 3, 2020

@rullzer shall we file new issue for SAML app or track it here? Is there any description how app token differ when SAML/oauth etc is used (when plain password never is known) ?

Cheers,
Xat

@rullzer
Copy link
Member

rullzer commented May 3, 2020

The issue is there is no public api for this. So it might break at any time.

Imo it would be better to have the login flow being used to obtain a proper token.

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

szaimen commented Jun 8, 2021

This was added with #24317

@szaimen szaimen closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: occ
Projects
None yet
Development

No branches or pull requests

7 participants