integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
79 stars 9 forks source link

Replace Bearer authentication with HTTP Basic for SQ 9.9 support #55

Closed fourls closed 2 months ago

fourls commented 2 months ago

When a token is provided, DelphiLint currently uses the Bearer authentication scheme to authenticate with the SonarQube server. This is apparently not supported by SonarQube 9.9, see 9.9 docs:

The token is sent via the login field of HTTP basic authentication, without any password.

This PR alters the server to use HTTP Basic auth instead. This is possible as the latest version still supports the HTTP Basic scheme, see 10.6 docs:

when invoking web services, pass the token using the bearer or basic HTTP authentication scheme