Authentication for the JetBrains plugin
To scan your Projects, you must authenticate with Snyk.
Snyk supports the following protocols for authentication:
OAuth 2.0 (Recommended)
Personal Access Token
Snyk API token (Legacy)
Before authenticating, ensure your region is properly set. For more details, see IDEs URLs.

Steps to authenticate using the OAuth 2.0 protocol
Follow the next steps to authenticate:
After the extension is installed, click the Snyk icon in the navigation bar, then click Trust project and scan.

A new browser window opens, requiring you to log in to your Snyk account.
In the next prompt, the Snyk IDE plugin 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 tokens on your local machine.
If you have problems, see OAuth 2.0 authentication does not work.
Steps to authenticate using your Personal Access Token
This method is inferior to the OAuth method.
To authenticate using the Personal Access token, follow these steps:
Navigate to Settings > Tools > Snyk.
Set the Authentication Method to Use Personal Access Token.
Click the Connect IDE to Snyk button.
Create your Personal Access Token. For details, see the Authentication for API page.
Add the token in the Token field.
Click Apply and Close.
Steps to authenticate using your Snyk API token
This method is inferior to the OAuth method.
To authenticate, follow these steps:
In the JetBrains plugin, navigate to Settings > Tools > Snyk.
Set the Authentication Method to API token.
Click the Connect IDE to Snyk button.
Click Authenticate in the web browser window that opens.
The API token is automatically updated in the API Token field.
Click Apply or OK.
The analysis starts automatically.
How to switch accounts
To re-authenticate with a different account, follow these steps:
In the JetBrains plugin, navigate to Settings > Tools > Snyk.
Clear the value of the Token field.
Click Apply or OK.
When you have logged out, start authentication again from the beginning.
Requirements for Linux and Unix
When authenticating with Snyk, users have the option to copy the authentication URL to their clipboard.
For Linux and Unix users, this requires the xclip
or xsel
utility to be installed.
Last updated
Was this helpful?