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

WS tool_mobile_get_public_config should return when QR login is enabled

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 3.10
    • Other
    • MOODLE_310_STABLE
    • MOODLE_400_STABLE
    • MDL-70624-master
    • Hide
      1. Login as admin.
      2. Go to "Site administration > Mobile settings"
      3. Enable the "Enable web services for mobile devices" setting
      4. Go to "Site administration > Mobile authentication"
      5. Set any value to the "QR code access" field and "Save changes"
      6. Execute the following curl command pointing to your local installation

        curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary '[\{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}]' | python -m "json.tool"

      7. Check that you receive in the curl response a tool_mobile_qrcodetype field with the following values:
        • 0 when the QR configuration is set to "Access via QR code disabled"
        • 1 when the QR configuration is set to "QR code with site URL"
        • 2 when the QR configuration is set to "QR code with automatic login"
      8. Please note that depending on your site configuration, if it is not using https for example, you might not see the last option "QR code with automatic login" in step 2
      Show
      Login as admin. Go to "Site administration > Mobile settings" Enable the "Enable web services for mobile devices" setting Go to "Site administration > Mobile authentication" Set any value to the "QR code access" field and "Save changes" Execute the following curl command pointing to your local installation curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary ' [\{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}] ' | python -m "json.tool" Check that you receive in the curl response a tool_mobile_qrcodetype field with the following values: 0 when the QR configuration is set to "Access via QR code disabled" 1 when the QR configuration is set to "QR code with site URL" 2 when the QR configuration is set to "QR code with automatic login" Please note that depending on your site configuration, if it is not using https for example, you might not see the last option "QR code with automatic login" in step 2

      This will allow the app to avoid showing the QR Login in customised apps when is not functional/enabled.

       

      Related mobile issue: MOBILE-3676

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m

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