Authentication for the Eclipse plugin
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.
Snyk supports the following protocols for authentication:
OAuth 2.0 (default)
Snyk API token (fallback option)
After the extension is installed, to authenticate follow these steps:
In the dialog that opens, set the Snyk API endpoint for custom multi-tenant or single-tenant setup, The default is https://api.snyk.io
. For details, see IDE URLs.
On the next page with additional information, click Finish:
The extension opens a new page in a default browser and asks you to log into 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 tokens 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 the Snyk account page.
This method is inferior to the OAuth method.
To authenticate using the API token, follow these steps:
Navigate to Preferences > Snyk.
Set the flag Use 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 Apply and Close. The analysis starts automatically.
To re-authenticate with a different account, follow these steps:
Navigate to Preferences > Snyk.
Clear the value of the Token field
Click Apply and Close.
When you have logged out, start authentication from scratch.