in src/main/java/org/jetbrains/teamcity/githubauth/GitHubOAuthClient.java [25:28]
public String getUserRedirect(@NotNull String clientId, @NotNull String scope, @NotNull String redirectUrl, @NotNull String state) {
return String.format("https://github.com/login/oauth/authorize?client_id=%s&scope=%s&redirect_uri=%s&state=%s",
clientId, scope, redirectUrl, state);
}