Authentication for the Eclipse plugin

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)

Steps to authenticate using the OAuth 2.0 protocol

After the extension is installed, to authenticate follow these steps:

  1. 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.

  1. On the next page with additional information, click Finish:

  1. The extension opens a new page in a default browser and asks you to log into your Snyk account:

  1. The next page asks for your authorization for the IDE to act on your behalf. Click Grant app access.

  1. After you authenticate successfully, view the confirmation message.

  1. 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 Snyk account page.

Steps to authenticate using your Snyk API token

This method is inferior to the OAuth method.

To authenticate using the API token, follow these steps:

  1. Navigate to Preferences > Snyk.

  2. Set the flag Use token authentication.

  3. Copy your API token. For details, see How to obtain your Snyk API token.

  4. Be sure to use your personal token. Paste or enter the token in the Token field.

  5. Click Apply and Close. The analysis starts automatically.

How to switch accounts

To re-authenticate with a different account, follow these steps:

  1. Navigate to Preferences > Snyk.

  2. Clear the value of the Token field

  3. Click Apply and Close.

  4. When you have logged out, start authentication from scratch.

Last updated

More information

Snyk privacy policy

© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.