def render_openid_response(resp)
      signed_response = openid_server.signatory.sign(resp) if resp.needs_signing
      web_response = openid_server.encode_response(resp)
      case web_response.code
      when OpenID::Server::HTTP_OK then render(:text => web_response.body, :status => 200)
      when OpenID::Server::HTTP_REDIRECT then redirect_to(web_response.headers['location'])
      else render(:text => web_response.body, :status => 400)
      end
    end
def render_openid_response(resp)
      signed_response = openid_server.signatory.sign(resp) if resp.needs_signing
      web_response = openid_server.encode_response(resp)
      case web_response.code
      when OpenID::Server::HTTP_OK then render(:text => web_response.body, :status => 200)
      when OpenID::Server::HTTP_REDIRECT then redirect_to(web_response.headers['location'])
      else render(:text => web_response.body, :status => 400)
      end
    end
Renders the final response output