What encoding mechanism does SonarQube REST API supports besides base64?


Currently we are using base64 encoding mechanism by triggering the Rest API. Is there any other encoding mechanism we can use in Rest API’s?.

Hey there.

It’s not clear to me what you mean by the encoding mechanism. Can you provide some more details?

Hi Colin,

We are trying to retrieve the sonar quality gate status of the project using Rest API. Here we are passing the SonarQube access token in the API headers, key is Authorization and value is the encoded value of the token with base64 encoding mechanism. Can we use any other encoding mechanism to encode the token instead of using base64?

SonarQube also supports the Bearer authentication scheme. See the documentation on Web API here.

Out of curiosity, what is wrong with using Base64 encoding here?