bitbucket atlascode.useNewAuth true does not send Authorization: Bearer in curl request in case of custom server.

Issue #695 new
Samir created an issue

bitbucket atlascode.useNewAuth true does not send Authorization: Bearer in curl request.

Reproduce:

in setting make atlascode.useNewAuth true

In password field put your accesstoken .

curl will look like below.

curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "Content-Type:application/json" -H "Authorization:Basic c2FtaXIucGF0cnk6TWprMU1UazBNVFExTXprd090TWxqTFhIa1I5QXJDM3hlRjBCckZzVElFM3g=" "https://at.samir.com/bb/users/samir.patry/repos/rest/mirroring/1.0/mirrorServers?limit=100"

In this case "Authorization:Basic is wrong as we are sending token.this should be Authorization: Bearer YourToken

This blocks integrating vscode to atlassian.

Comments (0)

  1. Log in to comment