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
- Go to the LinkedIn Developer Portal, sign in, click My apps in the top menu, and then click Create app.
- Enter App name, select a LinkedIn Page, enter the Privacy policy URL, and then click Create app.
- On the app page, open the Auth tab and note the Client ID and Client Secret values.
-
In the OAuth 2.0 settings section, click the pencil icon next to Authorized redirect URLs, add
https://idp.ngrok.com/oauth2/callback, and then click Update. - Open the Products tab and click Request access for Sign In with LinkedIn using OpenID Connect.
Update your ngrok endpoint Traffic Policy
- Access the ngrok Dashboard Endpoints page and locate an existing endpoint you’d like to add this to or create a new one.
- In your traffic policy, add the following configuration:
You may add any scopes that are required by your application with the following caveats.
- Scopes which require a Facebook app review are unsupported.
- ngrok will enforce that users accept all permissions before completing authorization.
Configure access control
Optionally, configure access control to your service by only allowing specific users or domains.- By Email
- By Name