@login_notrequired
def oauth_login(request):

  if 'social' not in request.GET:
      raise Exception(_("Invalid request: %s") % resp)
  else:
      url = OAuthBackend.handleLoginRequest(request)

  return HttpResponseRedirect(url)
dataset/ETHPy150Open cloudera/hue/desktop/libs/liboauth/src/liboauth/views.py/oauth_login/original