← Back to team overview

mahara-contributors team mailing list archive

[Bug 1161861] Re: SSO-out to Moodle: login referred from Moodle fails

 

Yes, this problem persists with Mahara 15.10.1 / Moodle 3.0.3.

Let me try to clarify the issue. Assume a Mahara installation at
http://localhost/mahara and a Moodle installation at
http://localhost/moodle, configured for SSO.

In Mahara the Moodle host is configured as follows:

WWW root: http://localhost/moodle
Site name: Moodle
Application: Moodle
Parent authority: None
SSO direction: We SSO out
Update userinfo on login: No
We auto-create users: No
They auto-create users: Yes
We import content: No

In Moodle the Mahara host is configured as follows:

Site: Mahara
Hostname: http://localhost/mahara
Services:
- SSO (Identity Provider): Subscribe
- SSO (Service Provider): Publish

SSO-out from Mahara to Moodle works well. However, when I access http://localhost/moodle/login/ and click on the "Mahara" link just below "Log in using your account on", I am redirected to: http://localhost/mahara/auth/xmlrpc/jump.php?hostwwwroot=http://localhost/moodle&wantsurl&remoteurl=1
and get this message: "Missing parameter 'wr' and no default supplied".

Looks like 'hostwwwroot' and 'remoteurl' are what should have been 'wr' and 'ins'. We've fixed this locally, but it'd be nice if there was an upstream solution.
Thanks.

-- 
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/1161861

Title:
  SSO-out to Moodle: login referred from Moodle fails

Status in Mahara:
  Incomplete

Bug description:
  When Mahara is configured for SSO-out to Moodle, Moodle's login link
  to Mahara is not processed correctly so an error appears.

  Mahara is set up as an XMLRPC peer with "We SSO out" and "They auto-
  create users". Moodle is subscribed to Mahara as SSO Identity Provider
  and publishes the SSO Service Provider.

  On the Moodle login page there is a link to Mahara at the bottom of the page (under "Log in using your account on:"). The link looks like this:
  http://localhost/mahara/auth/xmlrpc/jump.php?hostwwwroot=http%3A%2F%2Flocalhost%2Fmoodle&wantsurl=&remoteurl=1

  The page this link opens shows a login form. Immediately after you've
  logged in the following error appears:

  "Mahara: Invalid Parameter
  A required parameter is missing or malformed
  Missing parameter 'wr' and no default supplied"

  See also this thread:
  https://mahara.org/interaction/forum/topic.php?id=4650

  Mahara 1.6.3

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