Closed fredericdasilva closed 2 years ago
Hi @fredericdasilva,
Will check the possibility and add it in the next release.
According to the API, one should be able to use a token in place of the username. https://next.sonarqube.com/sonarqube/documentation/extend/web-api/
Can you try attaching the token to the username and leaving the password field as empty string?
Hello Thanks. Sorry but the extension is not working even with token used as username. I can see "Refreshing Sonarqube report" only and no information in the console.
@fredericdasilva Will check out on my side and hopefully come with with a way to use it.
Suspect the issue is in your sonarqube-sdk repository, where it looks like the validator utils are expecting both a username and password to be not null. If either is null then an error is thrown. See https://github.com/adisreyaj/sonarqube-sdk/blob/main/src/utils/validator.util.ts
Ran into this issue for a private org repo...any plans to update soon?
Suspect the issue is in your sonarqube-sdk repository, where it looks like the validator utils are expecting both a username and password to be not null. If either is null then an error is thrown. See https://github.com/adisreyaj/sonarqube-sdk/blob/main/src/utils/validator.util.ts
Looks like it. Will work this weekend to push the update.
I have the same demand and hope to support you as soon as possible
Hello,
I would try to use this pluggin to connect to my sonar server for which I am using token. Is it possible to use token instead of login/password ? exemple : { "project": "adisreyaj_compito", "sonarURL": "https://sonarcloud.io", "auth": { "token": "fkqsfbsdkfn6789dlqsfsldnfsd", } } Thanks FD