return HttpResponseRedirect(
    'https://www.google.com/a/thedomain.com/o8/ud?be=o8' + '?' + urllib.parse.
    urlencode(parameters))
Google Federated Login (OpenID+Oauth) for Hosted Apps - changing end points?