def proxyconnect_sso(request):
 if request.user.is_authenticated():
  return mysite.base.decorators.as_view(request, 'vanilla-proxy-connect-sso.txt', {}, 'proxyconnect-sso')
 return HttpResponse('')

def proxyconnect_sso ( request ) : if request . user . is_authenticated ( ) : return mysite . base . decorators . as_view ( request , 'vanilla-proxy-connect-sso.txt' , { } , 'proxyconnect-sso' ) return HttpResponse ( '' )
this function implements the proxyconnect single sign-on api described by vanilla forums .