Forums

Google Developer's console Error Invalid Redirect: must use a domain that is a valid top private domain

am trying to set up Google login for my webapp with Flask. The problem is with setting the 'Authorized redirect uri' in the Google Developer's console ashttps://papasumit12345.pythonanywhere.com/authorize. I get an error 'Invalid Redirect: must use a domain that is a valid top private domain'. This is happening only with PythonAnywhere domain. If switch the url with something like localhost/authorized then the error does not appear.

Can you please help?

There was a temporary misconfiguration on our side. It's been fixed, but it might take a little time for Google to pick it up. We expect it to start working soon (though it does depend on how frequently they pull updates to the public suffix list).

thanks, the whole night i was playing with code.. thanks for update. will we have some service update from you once its done?

We will probably not know when Google has updated their public suffix list.

i can see pythonanywhere.com at https://publicsuffix.org/list/public_suffix_list.dat but still google API URI giving me error 'Invalid Redirect: must use a domain that is a valid Top private domain '

That doesn't mean that Google is using that version. That was what my previous post was all about.