I have:
- a domain hosted outside google (englishcampus.com.br)
- a VM instance in Google Compute Engine running an application, with a static IP
- a subdomain (erp.englishcampus.com.br) pointing to that VM, which is working fine
But as I'm trying to authenticate Google API (OAuth), I get an error message:
"Invalid parameter value for redirect_uri: Raw IP addresses not allowed: http://104.197.50.68:8069/google_account/authentication"
...showing that one cannot use an IP address to redirect. On the API credential I put "http://erp.englishcampus.com.br/google_account/authentication", assuming that erp.englishcampus.com.br points to the VM.
My question is: how can I have the VM responding under an URL, instead of the static IP address, so that the OAuth process work?