I have set up some Cloud Endpoints in Android Studio and implemented an Authenticator (com.google.api.server.spi.config.Authenticator) which gets invoked with every call to a cloud endpoint.
Now I want to use my authenticator to check the login from Android with GiTkit (Google Identity Toolkit). When I debug my endpoints I can check them with a local URL like http://localhost:8080/_ah/api/userApi/v1/login/ . In the Android emulator the local loopback address is 10.0.2.2 so the URL would be http://10.0.2.2:8080/_ah/api/userApi/v1/login/ (which is working in the Android Browser).
But I can't change the the Authorized redirect URI form localhost to this URL in the Google developer console (Client ID for web application). (Invalid Redirect: http://10.0.2.2:8080/_ah/api/userApi/v1/login/ must end with a public top-level domain (such as .com or .org))
How can I debug my Cloud Endpoint together with GiTkit in the Android Emulator (or on the Phone)?