Web API authentication - Documentation bug?

Hi all,

I want to use the web API and according to SonarQube Server Web API | Documentation , you should pass in a user token as a bearer token in the Authorization header. This doesn’t work for me (I get a 401 response).

Then I see several posts on this community saying to use the token as a username with a blank password as a Basic authentication. That does work.

Is the documentation wrong? Why does it say to use the Bearer token authentication scheme when this obviously doesn’t work?

SonarQube 9.9.4 deployed using Docker.

Thanks,
Frans

Hey there.

If you check the docs specific to your version, you’ll find no reference to using Bearer. :slight_smile: This came later.

By the way, you need to upgrade!

Ah, of course! Thanks, hadn’t noticed that!

And yes, we do need to upgrade :slight_smile: