Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-72423

Add a new callback to extend session_check_security

    XMLWordPrintable

Details

    Description

      This is to allow plugins such as auth plugins or tool_mfa etc to add additional security checks to be done during the session setup phase at the end of this function:

      https://github.com/moodle/moodle/blob/master/lib/classes/session/manager.php#L558-L574

      An example use case is allowing more nuanced version of $CFG->tracksessionip but only applying it to certain roles. But it could conditionally perform other checks which are not ip based.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brendanheywood Brendan Heywood
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: