Connect VS Code to the JFrog Platform
Once the JFrog Extension is installed in VS Code, click on the JFrog tab:
This will open the Sign in page:
Fill in your connection details and click on the Sign In
button to start using the extension
Note: If you would like to use custom URLs for Artifactory or Xray, click on Advanced
.
You can also choose other option to authenticate with your JFrog Platform instance:
Connect Using SSO
To sign in using SSO, follow these steps:
On the sign-in page, click the
Continue with SSO
button:
After entering your JFrog platform URL, click on
Sign in With SSO
.It will take a few seconds for the browser to redirect you to the SSO sign in page.
You should now be signed in in at vscode.
Connect Using JFrog CLI Connection Details
If JFrog CLI is installed on your machine and is configured with your JFrog Platform connection details, then you should see the message popup in the Sigh in page:
Connect Using Environment Variables
You may set the connection details using the following environment variables. VS Code will read them after it is launched.
JFROG_IDE_URL
- JFrog URLJFROG_IDE_USERNAME
- JFrog usernameJFROG_IDE_PASSWORD
- JFrog passwordJFROG_IDE_ACCESS_TOKEN
- JFrog access tokenJFROG_IDE_STORE_CONNECTION
- Set the value of this environment variable to true, if you'd like VS Code to store the connection details after reading them from the environment variables.
Once the above environment variables are configured, you can expect to see a message popup in the Sigh in page:
Note: For security reasons, it is recommended to unset the environment variables after launching VS Code.
Last updated