'Form an HTML Form from a template with autosubmit.'

def render_html_response(self, host, token_id):

    headers = [('Content-Type', 'text/html')]
    with open(CONF.federation.sso_callback_template) as template:
        src = string.Template(template.read())
    subs = {'host': host, 'token': token_id}
    body = src.substitute(subs)
    return webob.Response(body=body, status='200', charset='utf-8', headerlist=headers)
