Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 401 when authenticating with token #371

Open
EstebanDugueperoux2 opened this issue Jul 5, 2023 · 4 comments
Open

HTTP 401 when authenticating with token #371

EstebanDugueperoux2 opened this issue Jul 5, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@EstebanDugueperoux2
Copy link

EstebanDugueperoux2 commented Jul 5, 2023

Describe the bug
With the Eclipse plugin (https://jfrog.com/help/r/jfrog-integrations-documentation/download?tocId=zjbyPctKiA8tFZD5aga0Iw) we only specify Xray endpoint, username and as password I can specify a token generated from my Artifactory profile and it works.
With this VSCode extension, I must specify 3 endpoints (JFrog Platform, Artifactory and XRay) and when I specify the same token as with Eclipse extension, I get a HTTP 401 answer.

To Reproduce
I have reproduced in my corporate context but it is difficult

Expected behavior
I expect connection works as with Eclipse plugin.

Screenshots
image

Versions

  • JFrog VS-Code extension version: v2.3.4
  • JFrog VS-Code extension operating system: Windows
  • JFrog Xray Version: 3.60.2

Additional context
I seems works with Eclipse plugin, because it uses my login in addition to token while this VSCode extension attempts authentication only from token, it don't ask me my username/login.

@EstebanDugueperoux2 EstebanDugueperoux2 added the bug Something isn't working label Jul 5, 2023
@EstebanDugueperoux2
Copy link
Author

Hi @Or-Geva,

do you have any clue about this issue?

Regards.

@Or-Geva
Copy link
Contributor

Or-Geva commented Jul 13, 2023

Hello, @EstebanDugueperoux2! Have you attempted to use basic-auth (username and password) or JFrog-CLI instead of access-token?. Moreover, make sure that the access token has 'View Components' permission in Xray. In addition to that, you are not using the latest version of Xray. It is recommended to update to higher versions as they may contain bug fixes.

@EstebanDugueperoux2
Copy link
Author

EstebanDugueperoux2 commented Aug 9, 2023

Hello @Or-Geva, auth works using basic-auth but I want to use token auth.
I'm not admin of the corporate XRay I use, I don't see any doc about this 'View Components' permission.
Indeed we use JFrog XRay 3.60.2 (https://jfrog.com/help/r/jfrog-release-information/xray-release-notes) and the latest is 3.79.
Do you have a compatibility matrix between IDE JFrog plugins and JFrog Artifactory/XRay servers?

Regards.

@Or-Geva
Copy link
Contributor

Or-Geva commented Oct 12, 2023

Hello @EstebanDugueperoux2, Xray v3.61.5 includes a fix for your issue:
https://jfrog.com/help/r/jfrog-release-information/xray-3.61.5
Please let me know if it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants