When using the CLI with --username foo --password bar arguments (provided by AbstractPasswordBasedSecurityRealm), only CLICommand based commands (like help, who-am-i, and list-jobs) seem to work. @CLIMethod based commands (e.g. quiet-down) fail a permission check for anonymous.
- is related to
-
JENKINS-12543 CliAuthenticator (username/password) called too late to parse arguments (like job names)
-
- Resolved
-
-
JENKINS-22969 Eliminate @CLIMethod usage in core
-
- Open
-
- links to
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
test/src/test/java/hudson/cli/CLIRegistererTest.java
http://jenkins-ci.org/commit/jenkins/867884f6328a4a16899c49859230442b5316aee1
Log:
[FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods