Google's OAuth policy blocks HTTP localhost redirects but allows loopback
IP addresses. This fixes authentication failures with the error:
"You can't sign in to this app because it doesn't comply with Google's
OAuth 2.0 policy for keeping apps secure."
Fixes#2463