← Back to team overview

mahara-contributors team mailing list archive

[Bug 1780328] [NEW] MNet logs user out when they try to jump from moodle to mahara once already logged in

 

Public bug reported:

When connecting from Moodle to Mahara we login via the MNet connection
but on subsequent jumps it logs us out.

Steps to reprodule:

1) Have a Moodle -> Mahara setup using MNet
2) On Moodle side have a course with an assignment submission block and have a user assigned to course
3) Log in as user
4) Go to the assignment and 'edit assignment' then click the "click here to visit" link
This will take you to Mahara and log you in
5) Click the "Return to Moodle" link
6) do step 4 again

You end up logged out of mahara/moodle

The reason for this is when we come from moodle this way it sets the
HTTP_USER_AGENT to be 'Moodle' which is not the same as your current
useragent.

We need to allow useragent 'Moodle' to only clear/reset current session
on store

** Affects: mahara
     Importance: Medium
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
    Milestone: None => 18.10.0

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

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

Title:
  MNet logs user out when they try to jump from moodle to mahara once
  already logged in

Status in Mahara:
  In Progress

Bug description:
  When connecting from Moodle to Mahara we login via the MNet connection
  but on subsequent jumps it logs us out.

  Steps to reprodule:

  1) Have a Moodle -> Mahara setup using MNet
  2) On Moodle side have a course with an assignment submission block and have a user assigned to course
  3) Log in as user
  4) Go to the assignment and 'edit assignment' then click the "click here to visit" link
  This will take you to Mahara and log you in
  5) Click the "Return to Moodle" link
  6) do step 4 again

  You end up logged out of mahara/moodle

  The reason for this is when we come from moodle this way it sets the
  HTTP_USER_AGENT to be 'Moodle' which is not the same as your current
  useragent.

  We need to allow useragent 'Moodle' to only clear/reset current
  session on store

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


Follow ups