
Hello email,
We noticed you configured your first endpoint yesterday, congrats!
You may not want everyone to be able to access your app/service. Did you know you can restrict access to authorized users for free by adding authentication to your endpoint?
You don’t even have to leave the ngrok agent CLI. Here are a couple of ways to do it:
Restrict with OAuth, email, and domain: Allow only users who authenticate via Google with an email of my-user@gmail.com or emails that end in example.com to access your upstream service.
ngrok http 80 \ --oauth google \ --oauth-allow-email my-user@gmail.com \ --oauth-allow-domain example.com
Restrict with Basic Auth: If you don't have a Google account or you want a simpler form of auth, you can protect your app with a username and password like so:
ngrok http {tracked link} --basic-auth
'username:a-very-secure-password'What’s next?
- Upgrade to an ngrok paid plan to access other authentication methods like SAML.
- Browse examples in the HTTP documentation of other ways ngrok can augment your traffic.
- Bring your own custom domain to ngrok.
- Add your API key and automate via the ngrok api command.
Follow ngrok
ngrok Inc., 548 Market St, PMB 26741, San Francisco, California 94104-5401, United States. Unsubscribe · Manage preferences