簡體   English   中英

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)

[英]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

在我給出 userName 和 Api Token Like: admin:5d984b57b0575e2dd088d02c9cc596e9b9600457 之后,它給出了 401-Unauthorized

所以請和我分享你的經驗。

注意:-使用 postman 用戶名密碼和承載令牌中的 Api 令牌,它可以工作。 我面臨用戶名和 Api 令牌的未經授權的問題。

如 postman 所示,您需要在Postman用戶名中添加不記名令牌,並且一旦您預覽請求,您將能夠對 Sonar 進行身份驗證。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM