Google OAuth2 and Devilbox?

Hello,
I would like to use Devilbox for a specific development using Oauth2 & Google API and i m stuck on receiving the callback as the only authrized domains are some top private domain or 127.0.0.1 …
I did some tests and always got the same error:
image
with request details:
Request Details

response_type=code
access_type=online
client_id=1234567891233-aaaaaaaaabbbbh7bbb.apps.googleusercontent.com
redirect_uri=http://test.loc/index.php
state=
scope=https://www.googleapis.com/auth/calendar
approval_prompt=auto

Does anybody knows i could work on a single site, accessible thru 127.0.0.1 ?
Thanks for your help !

Seems like non-public domains are not allowed: https://stackoverflow.com/questions/18499083/google-oauth2-not-working-on-local-development-server-php-codeigniter-spark

A workaround could be to set TLD_SUFFIX to mydomain.com (whatever your domain name is). This way your project would be: test.mydomain.com and will probably recognized by google as a valid domain.

Thanks for your help … but no luck :frowning:
As Google asks to validate the domain before being able to add it to the authorized URI, it fails.
As far i know, the only way to be able to use Google’s Oauth flow is to be able to acces the devl site using 127.0.0.1 …
BR

And I though I('m the only one :smile: that run in this kind of problem.
While Thinking about this issue I just had the bright ideea to use ngrok for the redirect :slight_smile: and it works