← Back to team overview

mahara-contributors team mailing list archive

[Bug 1744797] Re: SAML plugin not working correctly with SimpleSamlPhp 1.15

 

Adjusting ssphp to copy the extlib www/resources/ files into
sp/resources/ is a wrong path! It should go to auth/saml/resources.


The /htdocs/auth/saml/extlib/simplesamlphp/templates/post.php code snippet load these files from baseurlpath/resoures/post.js and baseurlpath/resoures/post.css

<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>POST data</title>
    <script type="text/javascript" src="/<?php echo $this->data['baseurlpath']; ?>resources/post.js"></script>
    <link 
        type="text/css" rel="stylesheet" href="/<?php echo $this->data['baseurlpath']; ?>resources/post.css" />
</head>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1744797

Title:
  SAML plugin not working correctly with SimpleSamlPhp 1.15

Status in Mahara:
  Fix Committed
Status in Mahara 16.10 series:
  Fix Released
Status in Mahara 17.04 series:
  Fix Released
Status in Mahara 17.10 series:
  Fix Released
Status in Mahara 18.04 series:
  Fix Committed

Bug description:
  There are couple of problems

  1) Plugin stop working and shows this error
   [SimpleSAML_Error_UnserializableException]: [ARRAY]: The option 'Format' is not a valid string value

  We used to set 'NameIDPolicy' to NULL, but we just need to not set
  this option any more

  2) The POST redirect to the IdP requires a special post.js file that
  exists in the extlib 'resources' section - we need to copy this to our
  sp section so the file can be accessed

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1744797/+subscriptions


References