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

Logout user if site URL is no longer one of the allowed URLs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device and it requires creating a dev build of the app.

      1. Install the app in the device.
      2. Login in any site.
      3. Now you need to create a new build with the following changes in moodle.config.json:
        1. Increase the versioncode.
        2. Set a valid siteurl different than the one you logged in in step 2.
      4. Install this new build in the device and launch the app. Check that you're sent to the page to add a new site (if the site is configured with SSO then it should open the browser or InAppBrowser).
      5. Cancel the login and go back to the sites screen.
      6. Click to enter the site you used in step 2. Check that you see an error saying that the site is no longer supported.
      Show
      This issue only needs to be tested in 1 device and it requires creating a dev build of the app. Install the app in the device. Login in any site. Now you need to create a new build with the following changes in moodle.config.json: Increase the versioncode . Set a valid siteurl different than the one you logged in in step 2. Install this new build in the device and launch the app. Check that you're sent to the page to add a new site (if the site is configured with SSO then it should open the browser or InAppBrowser). Cancel the login and go back to the sites screen. Click to enter the site you used in step 2. Check that you see an error saying that the site is no longer supported.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      Some institutions change the URL every certain time (e.g. once a year), they create a new site with a new URL and remove the old one.

      If the app cannot connect to a site anymore we should check if the site URL is still one of the fixed ones. If it isn't, then we should logout the user and make him login using the new URL.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Noel De Martin Noel De Martin
            Integrator:
            Noel De Martin Noel De Martin
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: