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

tool_mobile_get_public_config doesn't return launchurl if login is via the app

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to Site administration / Mobile app / Mobile authentication, and check that type of login is set to "via the app"
      2. Enable user sign-up via the auth_email plugin
      3. Add the LOGIN block in the Site home
      4. Check that if you are not logged in the site, you see the block and a link to the Sign-up form ("Create new account")
      5. Click in the link and check that you see correctly the "New account form"
      6. Execute the following curl command:

        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 the launchurl pointing to yoursite/admin/tool/mobile/launch.php
      8. Now, disable sign-up via auth email
      9. Check that in the LOGIN block you don't see the Create new account link any more
      10. Check if you open in the brower the login/signup.php script you receive an error
      Show
      Go to Site administration / Mobile app / Mobile authentication, and check that type of login is set to "via the app" Enable user sign-up via the auth_email plugin Add the LOGIN block in the Site home Check that if you are not logged in the site, you see the block and a link to the Sign-up form ("Create new account") Click in the link and check that you see correctly the "New account form" Execute the following curl command: 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 the launchurl pointing to yoursite/admin/tool/mobile/launch.php Now, disable sign-up via auth email Check that in the LOGIN block you don't see the Create new account link any more Check if you open in the brower the login/signup.php script you receive an error
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57102-master

      Description

      The app needs this URL for actions like confirm a user after signup, since we need to pass this URL to auth_email_signup_user.

      If the site is configured to login "via the app", the WS tool_mobile_get_public_config doesn't return this URL so the app doesn't know where to redirect.

        Attachments

          Activity

            People

            • Assignee:
              jleyva Juan Leyva
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Dani Palou
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16