We are using Sonarqube version 4.5. Using curl call I am trying to log on to sonar qube server but I am getting "authenication" error. What is a webapi call to logon to SonarQube server?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There is no dedicated 'login API', SonarQube Web Services use basic HTTP authentication (for the Web Services that do require authentication). So you just need to provide your credentials within the HTTP request itself, e.g. with curl
:
curl -u admin:admin http://localhost:9000/api/server/system
标签:
sonarqube-4.5