Authentication for Visual Studio extension
To scan your Projects, you must authenticate with Snyk.
Snyk supports the following protocols for authentication:
OAuth 2.0 (default)
Snyk API token (fallback option)
Before authenticating, be sure you have set your region properly. For details, see IDEs URLs.
Steps to authenticate using the OAuth 2.0 protocol
To authenticate, follow these steps:
After the extension is installed, navigate to Extensions > Snyk > Windows, and then Snyk to open the Snyk panel.

On the welcome screen, click Trust project and scan.

A new browser window opens; in response to the prompt, log in to your Snyk account.
In the next prompt, the Snyk IDE extension requests access to act on your behalf; click Grant app access.
When you have authenticated successfully, a confirmation message appears; close the browser window and return to the IDE.
The analysis starts automatically. The IDE reads and saves the authentication on your local machine.
If you have problems, see OAuth 2.0 authentication does not work.
Steps to authenticate using your Snyk API token
This method is inferior to the OAuth method.
To authenticate, follow these steps:
After the extension is installed, navigate to Extensions > Snyk > Settings:

Find the Authentication Method and change it to Token authentication
Copy your API token. For details, see Obtain and use your Snyk API token.
Be sure to use your personal token. Paste or enter the token in the Token field.
Click OK.
How to switch accounts
To re-authenticate with a different account, follow these steps:
Navigate to Extensions > Snyk > Settings.
Clear the value of the Token field.
Click OK.
When you have logged out, start authentication again from the beginning.
Last updated
Was this helpful?