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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.5
    • 4.0.0
    • Authentication
    • 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.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • 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

            dpalou Dani Palou
            dpalou Dani Palou
            Noel De Martin Noel De Martin
            Noel De Martin Noel De Martin
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22