def handle_checkid_request
      if allow_verification?
        save_checkid_request
        redirect_to proceed_path
      elsif openid_request.immediate
        render_response(openid_request.answer(false))
      else
        reset_session
        request = save_checkid_request
        session[:return_to] = proceed_path
        redirect_to( request.from_trusted_domain? ? login_path : safe_login_path )
      end
    end
def handle_checkid_request
      if allow_verification?
        save_checkid_request
        redirect_to proceed_path
      elsif openid_request.immediate
        render_response(openid_request.answer(false))
      else
        reset_session
        request = save_checkid_request
        session[:return_to] = proceed_path
        redirect_to( request.from_trusted_domain? ? login_path : safe_login_path )
      end
    end
Decides how to process an incoming checkid request. If the user is
 already logged in he will be forwarded to the proceed action. If
 the user is not logged in and the request is immediate, the request
 cannot be answered successfully. In case the user is not logged in,
 the request will be stored and the user is asked to log in.