Company
Date Published
Author
Robin Guldener
Word count
1326
Language
English
Hacker News points
None

Summary

OAuth redirects on localhost can be frustrating due to security concerns, as requiring HTTPS for all redirects makes sense when the request travels across the internet, but not when it's just within a local machine. To circumvent this issue, there are three quick methods: using a free redirect service like RedirectMeTo, which sets up an easy redirect straight from the browser; using an HTTPS tunnel to localhost with services like ngrok, which tunnels traffic from an HTTPS URL to your localhost; and enabling HTTPS for your app running on localhost, which involves generating an SSL certificate, installing it, and telling the HTTP server to use it. These solutions can help avoid issues with OAuth providers that prohibit or restrict HTTP-based redirects to localhost.