SQ Official Doc Link: https://docs.sonarqube.org/display/SONAR/User+Token
모든 사용자는 토큰을 생성하고 해당 토큰을 사용해 분석을 수행하거나 웹 서비스를 활용할 수 있습니다.
How to Generate a Token
To generate a token, to go User > My Account > Security. Your existing tokens are listed here, each with a Revoke button.
The form at the bottom of the page allows you to generate new tokens. Once you click the generate button, you will see the token value. Copy it immediately; once you dismiss the notification you will not be able to retrieve it.
How to Use a Token
User tokens have to be used as a replacement of your usual login:
- when running analyses on your code: replace your login by the token in the
sonar.login
property. - when invoking web services: just pass the token instead of your login while doing the basic authentication.
In both cases, you don't need to provide a password (so when running analyses on your code, the property sonar.password
is optional).