Can't add my custom jira site

Issue #470 open
Izac Silverio Ciszevski created an issue

I’m trying to use the vscode extension with my custom Jira site but it won’t work.

URL: https://jiraproducao.totvs.com.br/

When I add the custom site I receive the following message:

Authentication error

Error authenticating with Jira: Error: Request failed with status code 403

I turned on curl logging and the output is:

curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic <redacted>=" "https://jiraproducao.totvs.com.br/rest/api/2/myself" 
[2020-08-26 20:00:05:659] ---------------------------------------------------------------------- 
[2020-08-26 20:00:05:776]   Error: Error authenticating with Jira: Error: Request failed with status code 403
[2020-08-26 20:00:05:776]  Error: Authentication error: Error authenticating with Jira: Error: Request failed with status code 403

I executed the command in cmd and the result:

C:\git\techfin\techfin>curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic <redacted>=" "https://jiraproducao.totvs.com.br/rest/api/2/myself"
error code: 1020

But when I access the address in the browser it works. That’s the curl requisition made in the browser:

curl "https://jiraproducao.totvs.com.br/rest/api/2/myself" ^
-H "authority: jiraproducao.totvs.com.br" ^
-H "cache-control: max-age=0" ^
-H "upgrade-insecure-requests: 1" ^
-H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36" ^
-H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^
-H "sec-fetch-site: none" ^
-H "sec-fetch-mode: navigate" ^
-H "sec-fetch-user: ?1" ^
-H "sec-fetch-dest: document" ^
-H "accept-language: en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7" ^
-H "cookie: <redacted>" ^
--compressed

What shoul I do?

Thanks

Comments (6)

  1. Izac Silverio Ciszevski reporter

    Apparently yes, it is configured for SAML. But there’s also a login page:

  2. Log in to comment