Authentication for the JetBrains plugins
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
To scan your Projects you must authenticate with Snyk.
Before authenticating, be sure you have set your region properly. For details, see Regional hosting and data residency, which has the list of regional URLs.
Snyk supports the following protocols for authentication:
OAuth 2.0 (default)
Snyk API token (fallback option)
To authenticate follow these steps:
After the extension is installed, click the Snyk icon in the navigation bar, then click Trust project and scan.
The extension opens a new page in a default browser and asks you to log in to your Snyk account:
The next page asks for your authorization for the IDE to act on your behalf. Click Grant app access.
After you authenticate successfully, view the confirmation message.
The IDE reads and saves the authentication on your local machine. Close the browser window and return to the IDE.
The analysis starts automatically. If you have problems, see OAuth 2.0 authentication does not work.
OAuth 2.0 tokens are not static and cannot be copied from Snyk account page.
This method is inferior to the OAuth method.
To authenticate follow these steps:
In the JetBrains plugin navigate to Preferences > Tools > Snyk.
Find the Authentication Method and change it to Token authentication
Copy your API token. For details, see Obtain and use your Snyk API token.
Paste or enter the token in the Token field.
Click Apply or OK. The analysis starts automatically.
To re-authenticate with a different account, follow these steps:
In the JetBrains plugin, navigate to Preferences > Tools > Snyk.
Clear the value of the Token field.
Click Apply or OK.
When you have logged out, start authentication from scratch.
When authenticating with Snyk, users have the option to copy the authentication URL to their clipboard.
For Linux and Unix users, this requires that the xclip
or xsel
utility be installed.