简体   繁体   中英

How to hit sonarQube api with username and api token in postman.(bearer token and username password is working Problem with UserName and Api Token)

In Postman i'm giving SonarQube Api like http://localhost:9000/api/issues/search?projectKeys=project1&tags=duplicate And in Type i'm Taking Basic Auth

and after i'm giving userName and Api Token Like: admin:5d984b57b0575e2dd088d02c9cc596e9b9600457 in that time it's giving 401-Unauthorized

so please share your experience with me.

NOTE:- With this Api Token In postman Username Password and Bearer Token it's Working. i'm facing Unauthorized issue with userName and Api token.

As shown in postman you need to add the bearer token in the Username of the Postman and once you Preview the request you will be able to authenticate to Sonar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM