Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4022

Support new tool_mobile_autologinmintimebetweenreq setting for auto-login requests

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.0
    • 3.9.5
    • Others
    • Hide

      This issue only needs to be tested in 1 device.

      Test master site

      1. In a master site as admin, go to "Site administration > Mobile app >
        Mobile authentication" and set autologinmintimebetweenreq to 3 minutes.
      2. In the app, login in that master site.
      3. Open any activity.
      4. Open the activity info side modal using the top-right icon.
      5. Open the inspector and go to the Network requests tab.
      6. Click the icon to open in browser, next to the activity title. Please remember the time you did this.
      7. Check that the browser is opened and you're automatically authenticated.
      8. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key.
      9. In browser, close the session.
      10. In the app, click the icon to open in browser again.
      11. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key.
      12. After 3 minutes have passed from step 6, click the open in browser again.
      13. Check that the browser is opened and you're automatically authenticated.

      Test older site

      1. In the app, login in a 3.11 or older site.
      2. Open any activity.
      3. Open the activity info side modal using the top-right icon.
      4. Open the inspector and go to the Network requests tab.
      5. Click the icon to open in browser, next to the activity title. Please remember the time you did this.
      6. Check that the browser is opened and you're automatically authenticated.
      7. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key.
      8. In browser, close the session.
      9. In the app, after 3 minutes have passed from step 6, click the icon to open in browser again.
      10. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key.
      11. After 6 minutes have passed from step 6, click the open in browser again.
      12. Check that the browser is opened and you're automatically authenticated.
      Show
      This issue only needs to be tested in 1 device. Test master site In a master site as admin, go to "Site administration > Mobile app > Mobile authentication" and set autologinmintimebetweenreq to 3 minutes. In the app, login in that master site. Open any activity. Open the activity info side modal using the top-right icon. Open the inspector and go to the Network requests tab. Click the icon to open in browser, next to the activity title. Please remember the time you did this. Check that the browser is opened and you're automatically authenticated. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key. In browser, close the session. In the app, click the icon to open in browser again. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key. After 3 minutes have passed from step 6, click the open in browser again. Check that the browser is opened and you're automatically authenticated. Test older site In the app, login in a 3.11 or older site. Open any activity. Open the activity info side modal using the top-right icon. Open the inspector and go to the Network requests tab. Click the icon to open in browser, next to the activity title. Please remember the time you did this. Check that the browser is opened and you're automatically authenticated. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key. In browser, close the session. In the app, after 3 minutes have passed from step 6, click the icon to open in browser again. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key. After 6 minutes have passed from step 6, click the open in browser again. Check that the browser is opened and you're automatically authenticated.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

      Introduced by MDL-69555, previously it was hardcoded to 6 minutes in both the site and the app

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.