I'm trying to locally test Google oAuth, but Google won't let me generate credentials because it's not happy with the domain name:
🔴 Invalid Redirect: must end with a public top-level domain (such as .com or .org).
🔴 Invalid Redirect: must use a domain that is a valid top private domain.
It doesn't complain if I use a localhost domain, so I could use that, but I don't know what port my app is mapped to. Going to localhost:80 lands me on a Laravel Herd 404 page.
I am also struggling with this issue but my app is not a laravel app so php artisan serve doesn't work. Is there any other way to test Google OAUTH using herd?
When implementing social authentication in your Laravel application, you may face the issue that Herd’s .test domain is not recognized by the social authentication providers. This is because they often require a public top-level domain (TLD) for their callback URLs. Herd does not support changing the .test domain to a public TLD, because that would introduce serious security issues to your machine – but we can work around this.
​
Using the fwd.host Webservice
We’ve created a web service that acts as a proxy for your redirects and does not store any data. You can use this service to handle social authentication callbacks by setting your callback URLs to https:// fwd. host/http: //your-herd-site. test/auth/callback.
This way, the social authentication provider will redirect to fwd.host, which will then forward the request to your Herd site.