【问题标题】: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)如何在邮递员中使用用户名和 api 令牌命中 sonarQube api。(承载令牌和用户名密码正在工作 UserName 和 Api 令牌问题)
【发布时间】:2020-09-11 03:10:14
【问题描述】:

在 Postman 中,我提供 SonarQube Api 喜欢 http://localhost:9000/api/issues/search?projectKeys=project1&tags=duplicate 在类型中,我正在接受基本身份验证

在我给出用户名和 Api 令牌之后 喜欢:管理员:5d984b57b0575e2dd088d02c9cc596e9b9600457 在那个时候它给了 401-Unauthorized

所以请与我分享你的经验。

注意:- 在邮递员用户名密码和承载令牌中使用此 Api 令牌它正在工作。我正面临用户名和 Api 令牌未经授权的问题。

【问题讨论】:

    标签: api sonarqube postman token unauthorized


    【解决方案1】:

    postman 所示,您需要在 Postman 的 Username 中添加不记名令牌,并且一旦您预览请求,您就可以向 Sonar 进行身份验证。

    【讨论】:

      猜你喜欢
      • 2017-09-10
      • 2019-05-24
      • 2022-01-22
      • 2019-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-06
      • 2019-08-31
      相关资源
      最近更新 更多