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 plugin is installed, to authenticate, follow these steps:
In the dialog that opens, set the Snyk API endpoint for a custom multi-tenant or single-tenant setup. For details, see IDE URLs. Multi-tenant users who do not belong to the
SNYK-US-01
region (https://api.snyk.io
) will be automatically redirected to the correct domain for the email with which the user authenticated. The redirect will not occur for cases where the users are expected to use a custom URL, such as companies with single-tenant setups. When you are finished with the settings on this page, click Next.

On the next page, follow the prompts and read the information; then click Finish.

A new browser page opens; in response to the prompt, 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 Snyk API token
This method is inferior to the OAuth method.
To authenticate using the API token, follow these steps:
Navigate to Preferences > Snyk.
Set the flag to 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.
How to switch accounts
To re-authenticate with a different account, follow these steps:
Navigate to Preferences > Snyk.
Clear the value in the Token field
Click Apply and Close.
When you have logged out, start authentication again from the beginning.
Last updated
Was this helpful?