Skip to main content
This guide walks you through configuring ngrok to use Amazon OAuth (Login with Amazon) for user authentication. The steps below follow Amazon’s Register for Login with Amazon documentation for websites.

What you’ll need

  • Your Amazon Developer account (sign up if you don’t have one).
  • Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.

Create a security profile for ngrok

Follow Amazon’s documentation for registering with Login with Amazon to create a security profile in the Login with Amazon portal, then set the following in the profile’s web settings:
  • Allowed Return URLs: add https://idp.ngrok.com/oauth2/callback.
Note the security profile’s Client ID and Client Secret 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