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

Support fixed URL in config.json

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Log in screen
    • Labels:
    • Testing Instructions:
      Hide
      1. Run the app without setting a siteurl in config.json. Check that the behavior is exactly as before and you can add any site.
      2. Add a fixed siteurl without browser SSO to the config.json and run the app.
      3. Check that you go directly to the credentials page when:
        • You start the app without sites stored.
        • You delete your last site.
        • You click the "Add" button in sites list.
      4. Check that you can login in that site. If local_mobile is installed, check that it's used by the app.
      5. Now replace the fixed siteurl with a Moodle that uses browser SSO and run the app.
      6. Check that, when going to credentials view, a modal is shown telling that you need to login using browser. Check that you can authenticate using SSO.
      7. Go to add a site again and now click cancel when the app tells you to login via browser. Check that username and password are disabled. Check that clicking "Login" shows the same modal again.
      Show
      Run the app without setting a siteurl in config.json. Check that the behavior is exactly as before and you can add any site. Add a fixed siteurl without browser SSO to the config.json and run the app. Check that you go directly to the credentials page when: You start the app without sites stored. You delete your last site. You click the "Add" button in sites list. Check that you can login in that site. If local_mobile is installed, check that it's used by the app. Now replace the fixed siteurl with a Moodle that uses browser SSO and run the app. Check that, when going to credentials view, a modal is shown telling that you need to login using browser. Check that you can authenticate using SSO. Go to add a site again and now click cancel when the app tells you to login via browser. Check that username and password are disabled. Check that clicking "Login" shows the same modal again.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE

      Description

      Right now custom apps need to modify login/main.js to be able to support fixed URLs. With the changes done in MOBILE-1335 we should be able to support it using config.json.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Juan Leyva
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Dec/15