Skip to main content

credentials

Function credentials 

Source
pub fn credentials(cfg: &Config) -> Result<Credentials>
Expand description

Who may sign in (#266): a username and a password hash from .env, or — on an install that has no hash yet — the shared token, which keeps working until eclipse web passwd runs.

The lookup order is the config loader’s: a real environment variable beats .env, so exporting one to try something appears to work, exactly as ${ECLIPSE_WEB_AUTH_TOKEN} does for the token. A hash that does not parse refuses to start: quietly falling back to the token would be a security decision taken by a typo.