'This is called to get context with new oauth params to iframe.'

@XBlock.handler
def preview_handler(self, _, __):

    template = self.system.render_template('lti_form.html', self.get_context())
    return Response(template, content_type='text/html')
