Snyk App

Leen supports Snyk integrations via OAuth2 for both Snyk US and Snyk EU. To integrate with Snyk, users will have to authorize Leen’s Snyk app. This will allow Leen to access the appropriate Snyk resources in your account. Leen takes care of the OAuth2 code-flow and access token management, so you don’t have to worry about it.

Snyk currently does offer their V1 API in the EU region. If you are an EU customer, you may experience slight degradation in Leen’s data mappings when compared to the US. Here are all the fields that Leen will not be able to map for EU customers:

  • package_name
  • package_version
  • platform
  • publication_time
  • is_patchable
  • cvss_score
  • remediation

Onboarding

Follow the steps below to onboard a user to our Snyk Integration.

1

Create Snyk Connection

With your Leen API Key and your Customer’s Org ID, make a API request to create a new Snyk Connection. More information can be found on the API Reference page.

2

Redirect User to Snyk

Redirect the user to the oauth2_authorize_url from the previous step in a new tab. This will prompt the user to authorize Leen’s Snyk app to access their Snyk resources. Once the user has authorized the app, they will be redirected to Leen on a successful authorization.

3

Pull Data

Now that the user has authorized the app, you can pull data from Snyk using the connection_id from the first step. More information can be found on the API Reference page.