Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


모든 사용자는 토큰을 생성하고 해당 토큰을 사용해 분석을 수행하거나 웹 서비스를 활용할 수 있습니다. 

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 메뉴로 이동합니다. 토큰이 발급된 경우, 토큰 목록이 표시됩니다. 각 토큰은 Revoke 버튼을 눌러 삭제할 수 있습니다.

페이지 하단 양식에 필요한 정보를 입력하고 신규 토큰을 생성할 수 있습니다. generate 버튼을 클릭하여 토큰값을 확인할 수 있습니다. 표시된 토큰값을 즉시 복사합니다; 해당 페이지를 벗어나면 토큰을 확인할 수 없습니다.

토큰 사용하기

다음과 같은 경우 사용자 로그인 대신, 사용자 토큰을 사용할 수 있습니다:

  • 로컬 코드를 분석하는 경우: sonar.login 속성값을 토큰으로 변경합니다. 
  • 웹 서비스를 호출하는 경우: 기본 인증(basic authentication)을 사용하며, 로그인 대신 토큰을 사용합니다.

위의 두 경우 모두 비밀번호를 입력할 필요가 없습니다(즉, 로컬 코드를 분석하는 경우 sonar.password 속성은 필수가 아닙니다).