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

Web service tokens: Add a Last Access column at the table view

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • Hide
      1. Log in as admin
      2. Edit Authenticated user role
        • Allow moodle/webservice:createtoken
        • Allow webservice/rest:use
      3. Create a test user
      4. Enable and configure webservices:
        • Enable web services
        • Enable REST protocol
        • Enable Moodle mobile web service
      5. Create token for test user
        • Ensure you made a note of this token
      6. Confirm the token table shows Never in the Last access column for new token
      7. From a terminal, execute the following:

        $ curl --silent "<WWWROOT>/webservice/rest/server.php?moodlewsrestformat=json" --data "wstoken=<TOKEN>&wsfunction=core_webservice_get_site_info" | python -m "json.tool"
        

      8. Reload the Manage tokens page
      9. Confirm the table shows current date/time in the Last access column for new token
      10. Log out
      11. Log in as user
      12. Navigate to Preferences > Security keys from profile menu
      13. Confirm the table shows current date/time in the Last access column for token
      Show
      Log in as admin Edit Authenticated user role Allow moodle/webservice:createtoken Allow webservice/rest:use Create a test user Enable and configure webservices: Enable web services Enable REST protocol Enable Moodle mobile web service Create token for test user Ensure you made a note of this token Confirm the token table shows Never in the Last access column for new token From a terminal, execute the following: $ curl --silent "<WWWROOT>/webservice/rest/server.php?moodlewsrestformat=json" --data "wstoken=<TOKEN>&wsfunction=core_webservice_get_site_info" | python -m "json.tool" Reload the Manage tokens page Confirm the table shows current date/time in the Last access column for new token Log out Log in as user Navigate to Preferences > Security keys from profile menu Confirm the table shows current date/time in the Last access column for token
    • 1

      While working on MDL-76656, we need to add a Last Access column at the table view of Web service tokens so users get well-informed on which tokens have been used frequently and which have not been used for a long time. The column can be sorted ascending and descending.

      It will affect two pages:

      • Manage Web Service Tokens
      • User Security Keys

      The external_tokens DB table already has the last access information in the lastaccess column.

        1. (I) 13 Passed -- (Master)MDL-78503.png
          37 kB
          Kim Jared Lucas
        2. (I) 6 Passed -- (Master)MDL-78503.png
          72 kB
          Kim Jared Lucas
        3. (I) 9 Passed -- (Master)MDL-78503.png
          55 kB
          Kim Jared Lucas

            pholden Paul Holden
            meirza.arson@moodle.com Meirza
            Safat Shahin Safat Shahin
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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