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

Add option for "sign-out" only for the Moodle app

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10
    • 3.8.2, 3.10
    • Other
    • MOODLE_310_STABLE, MOODLE_38_STABLE
    • MOODLE_310_STABLE
    • MDL-68406-master
    • Hide
      Prerequisite
      1. Moodle mobile app.
      2. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following:
        • Ensure that the phone with the mobile app and the web server are on the same network. Or
        • Expose the web server over the internet via ngrok.
      Test
      1. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      2. Via Site administration > Security -> Site security settings set the "tokenduration" option to 2 minutes
      3. Now, create a standar user account in the site
      4. Access to the site using the web browser and go to the user Profile page
      5. Confirm that:
        • In the Mobile app box you see a message indicating: "This site has mobile app access enabled, download the mobile app"
      6. Now, access to the site using the mobile app
      7. Reload in the web browser the user profile page and confirm that:
        • In the Mobile app box now you see a message indicating the last time the user access with the app (it should say a few seconds ago or similar) and a link to logout
      8. Access to the user profile again, but this time as a Moodle administrator (using a different browser or incognito tab) and confirm that:
        • In the Mobile app box you don't see private user things/actions like the QR log or the link to logout
      9. Wait a couple of minutes (or the minutes you set in the tokenduration setting) so the token expires
      10. Reload in the web browser (the session where you are logg-ed in as the user) the user profile page and confirm that:
        • In the Mobile app box you still see the last access time but you don't see the logout link
      11. Open the app again, you will be asked to re-enter your credentials when browsing the site
      12. Reload again in the web browser (user session) the user profile page and confirm that:
        • In the Mobile app box now you see a message indicating the last time the user access with the app (it should say a few seconds ago or similar) and a link to logout
      13. Click the Logout option, you will be redirected to a page displaying a warning message
      14. Click yes and confirm that
        • In the Mobile app box you see a message indicating: "This site has mobile app access enabled, download the mobile app"
      15. Open the app again, and confirm that:
        • you will be asked to re-enter your credentials when browsing the site
      Show
      Prerequisite Moodle mobile app. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following: Ensure that the phone with the mobile app and the web server are on the same network. Or Expose the web server over the internet via ngrok. Test As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Via Site administration > Security -> Site security settings set the "tokenduration" option to 2 minutes Now, create a standar user account in the site Access to the site using the web browser and go to the user Profile page Confirm that: In the Mobile app box you see a message indicating: "This site has mobile app access enabled, download the mobile app" Now, access to the site using the mobile app Reload in the web browser the user profile page and confirm that: In the Mobile app box now you see a message indicating the last time the user access with the app (it should say a few seconds ago or similar) and a link to logout Access to the user profile again, but this time as a Moodle administrator (using a different browser or incognito tab) and confirm that: In the Mobile app box you don't see private user things/actions like the QR log or the link to logout Wait a couple of minutes (or the minutes you set in the tokenduration setting) so the token expires Reload in the web browser (the session where you are logg-ed in as the user) the user profile page and confirm that: In the Mobile app box you still see the last access time but you don't see the logout link Open the app again, you will be asked to re-enter your credentials when browsing the site Reload again in the web browser (user session) the user profile page and confirm that: In the Mobile app box now you see a message indicating the last time the user access with the app (it should say a few seconds ago or similar) and a link to logout Click the Logout option, you will be redirected to a page displaying a warning message Click yes and confirm that In the Mobile app box you see a message indicating: "This site has mobile app access enabled, download the mobile app" Open the app again, and confirm that: you will be asked to re-enter your credentials when browsing the site

      In the user profile, "Mobile app" section we should add a new option to allow the current user to sign.out from the app.

      There is a small usability issue here, the last time the user accessed via the app is stored in the external_tokens table, the tokens are deleted when they are not valid anymore, so in certain scenarios, we can lose that information.

      I'm investigating the best place to store this information, maybe creating additional fields in the user_lastaccess table or the user profile?

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Jake Dallimore Jake Dallimore
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 51 minutes
                3h 51m

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