parameters: (request, identity_url, openid_response)
return_statement: return HttpResponseRedirect(next)
docstring: openid signin success.
  
      If the openid is already registered, the user is redirected to 
      url set par next or in settings with OPENID_REDIRECT_NEXT variable.
      If none of these urls are set user is redirectd to /.
  
      if openid isn't registered user is redirected to register page.
docstring_summary: openid signin success.
docstring_tokens: openid signin success .
function: def signin_success(request, identity_url, openid_response):
      """
      openid signin success.
  
      If the openid is already registered, the user is redirected to 
      url set par next or in settings with OPENID_REDIRECT_NEXT variable.
      If none of these urls are set user is redirectd to /.
  
      if openid isn't registered user is redirected to register page.
      """
  
      openid_ = from_openid_response(openid_response) #create janrain OpenID object
      request.session['openid'] = openid_
      try:
          rel = UserAssociation.objects.get(openid_url__exact = str(openid_))
      except:
          # try to register this new user
          return register(request)
      user_ = rel.user
      if user_.is_active:
          user_.backend = "django.contrib.auth.backends.ModelBackend"
          login(request, user_)
          
      next = clean_next(request.GET.get('next'))
      return HttpResponseRedirect(next)
function_tokens: def signin_success ( request , identity_url , openid_response ) : openid_ = from_openid_response ( openid_response ) #create janrain OpenID object request . session [ 'openid' ] = openid_ try : rel = UserAssociation . objects . get ( openid_url__exact = str ( openid_ ) ) except : # try to register this new user return register ( request ) user_ = rel . user if user_ . is_active : user_ . backend = "django.contrib.auth.backends.ModelBackend" login ( request , user_ ) next = clean_next ( request . GET . get ( 'next' ) ) return HttpResponseRedirect ( next )