Hi, so far, in the documentation read to use SonarCloud API, the only way of authentication seems to be basic HTTP.
Is there a way to use an API token for authentication instead of using the users credentials?
Thanks!
Hi, so far, in the documentation read to use SonarCloud API, the only way of authentication seems to be basic HTTP.
Is there a way to use an API token for authentication instead of using the users credentials?
Thanks!
Ben,
How to make use of a token when using the Web API is documented here. Simply pass your generated token into the login field and omit any password.
An example:
curl -u mytokenhere123: https://sonarcloud.io/api/languages/list
Colin
Thanks a lot for the prompt response!
@Colin - I dont mean to necro post, but SonarCloud has an API reference site thats really incomplete and probably creating confusion and questions. https://sonarcloud.io/web_api/api/projects. It doesnt help that its the first result when googling for “sonarcloud api”