Skip to main content
This guide explains how to create a LinkedIn app and configure ngrok to use LinkedIn OAuth for user authentication. The steps follow LinkedIn’s OAuth 2.0 setup documentation for web applications.

What you’ll need

  • A LinkedIn account and (optionally) a LinkedIn Page for your app.
  • Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.

Create credentials for ngrok

Follow LinkedIn’s documentation for creating an app in the LinkedIn Developer Portal, then set the following:
  • Authorized redirect URLs: add https://idp.ngrok.com/oauth2/callback in the app’s authentication settings.
  • Products: request access to Sign In with LinkedIn using OpenID Connect, which is required for ngrok to authenticate users.
Note the Client ID and Client Secret from the app’s authentication settings for use in your Traffic Policy below.

Update your ngrok endpoint Traffic Policy

  1. Access the ngrok Dashboard Endpoints page and locate an existing endpoint you’d like to add this to or create a new one.
  2. In your traffic policy, add the following configuration:
You may add any scopes that are required by your application with the following caveats.
Click Save to validate and update your traffic policy.

Configure access control

Optionally, configure access control to your service by only allowing specific users or domains.

Further resources