[Xerte] Shibbolising XOT

Bruce Jackson bj1 at soas.ac.uk
Mon Jul 22 10:04:59 BST 2013


Hello,

We're trying to get Shibboleth working as a method of authentication here.

>From a thread on this forum back in November 2010 (
http://lists.nottingham.ac.uk/pipermail/xerte/2010-November/007360.html),
and from reading the comments in the integration.txt file, it appears it
should be a fairly simple case of editing integration.txt to set the three
variables ($_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']
and $_SESSION['toolkits_logon_username']) to values obtained from the
Shibboleth IdP, adding a call "session_start()" at the beginning of the
script, and then renaming integration.txt to be index.php.

When I do that and try to log in, the page I get back appears to have a
chunk of html missing at the start - see below.
Should I be copying parts of the standard index.php script into the
integration.txt version?

Returned html:

+++

<script type="text/javascript"> // JAVASCRIPT library for fixed
variables // management of javascript is set up here // SITE
SETTINGSvar site_url = "http://lamp1.lis.soas.ac.uk/xerte/";var
site_apache = "false";var properties_ajax_php_path =
"website_code/php/properties/"; var management_ajax_php_path =
"website_code/php/management/"; var ajax_php_path =
"website_code/php/";<div class="folder" id="folder_workspace"
ondblclick="folder_open_close(this)"
onclick="highlight_main_toggle(this)"><p><img
style="vertical-align:middle"
src="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/folder_workspace.gif"
/>Workspace</p></div><div id="folderchild_workspace"
class="workspace"><div id="file_5" class="file" preview_size="800,665"
editor_size="800,665" style="padding-left:20px"
onmousedown="single_click(this);file_folder_click_pause(event)"
onmouseup="file_drag_stop(event,this)"><img
src="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif"
style="vertical-align:middle" />BJProj</div><div id="file_6"
class="file" preview_size="800,665" editor_size="800,665"
style="padding-left:20px"
onmousedown="single_click(this);file_folder_click_pause(event)"
onmouseup="file_drag_stop(event,this)"><img
src="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/Icon_Page.gif"
style="vertical-align:middle" />BJProj</div></div><div class="folder"
id="recyclebin" ondblclick="folder_open_close(this)"
onclick="highlight_main_toggle(this)"><p><img id="folder_recyclebin"
style="vertical-align:middle"
src="http://lamp1.lis.soas.ac.uk/xerte//website_code/images/rb_empty.gif"
/>Recycle Bin</p></div><div id="folderchild_recyclebin"
class="folder_content"></div><div class="template"
onmouseover="this.style.backgroundColor='#ebedf3'"
onmouseout="this.style.backgroundColor='#fff'"><div
class="template_icon"></div><div class="template_desc"><p
class="template_name">Bootstrap Template</p><p
class="template_desc_p">A responsive template for delivering content
to all devices.<br><button type="button" class="xerte_button"
onclick="javascript:template_toggle('site')">Create</button></div><div
id="site" class="rename"><span>Enter a name for this
project</span><form action="javascript:create_tutorial('site')"
method="post" enctype="text/plain"><input type="text" width="200"
id="filename" name="filename" /><br /><button type="submit"
class="xerte_button" >Create Project</button></form></div></div><div
class="template" onmouseover="this.style.backgroundColor='#ebedf3'"
onmouseout="this.style.backgroundColor='#fff'"><div
class="template_icon"></div><div class="template_desc"><p
class="template_name">Xerte Online Toolkit</p><p
class="template_desc_p">A flexible template for creating interactive
learning objects.<br><button type="button" class="xerte_button"
onclick="javascript:template_toggle('Nottingham')">Create</button></div><div
id="Nottingham" class="rename"><span>Enter a name for this
project</span><form action="javascript:create_tutorial('Nottingham')"
method="post" enctype="text/plain"><input type="text" width="200"
id="filename" name="filename" /><br /><button type="submit"
class="xerte_button" >Create Project</button></form></div></div><div
class="template" onmouseover="this.style.backgroundColor='#ebedf3'"
onmouseout="this.style.backgroundColor='#fff'"><div
class="template_icon"></div><div class="template_desc"><p
class="template_name">RSS Feed</p><p class="template_desc_p">Easily
create and maintain an RSS Feed.<br><button type="button"
class="xerte_button"
onclick="javascript:template_toggle('Rss')">Create</button></div><div
id="Rss" class="rename"><span>Enter a name for this
project</span><form action="javascript:create_tutorial('Rss')"
method="post" enctype="text/plain"><input type="text" width="200"
id="filename" name="filename" /><br /><button type="submit"
class="xerte_button" >Create
Project</button></form></div></div>	</body></html>

+++

Thanks in advance for any help.

Cheers,

Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130722/7d7b9813/attachment.html>


More information about the Xerte mailing list