enonic / cli-enonic

GNU General Public License v3.0
41 stars 1 forks source link

Enonic CLI - Remotes #49

Closed pmi closed 5 years ago

pmi commented 5 years ago

https://github.com/enonic/enonic/blob/master/xp/7.0/enonic-cli.md#remote-commands

pmi commented 5 years ago

Connection params which are:

They should be saved along with a connection name to ~/.enonic/.enonic under remotes header. Following sub-commands will be used to manage remotes:

default http://localhost:8080 should be always present and impossible to delete

GlennRicaud commented 5 years ago

Not sure about saving [user:pass] in clear text in a file. That is why I wanted to know if it was like a connect or more like a list of remote URLs.

If we want to have this user password, then maybe keeping the session ID would be better. Or some other solution. To be discussed

pmi commented 5 years ago

@GlennRicaud True, I thought about storing passwords in a hashed and salted way But in this case backend needs to be modified to accept it this way of course.