
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: