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

Use GET request to get site info to make redirects work

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.7.1
    • 3.7.0
    • Authentication
    • Hide

      This issue should be tested both in Android and iOS.

      1. Configure a master site with a redirect. E.g. in my httpd.conf I put this:

        Redirect "/test" "/stable_master"
        

      2. Make sure the authentication is configured to be in the app, not in browser.
      3. In the app, try to add the site using the URL that will be redirected (in my example above, /test). Check that in the credentials screen you see the final URL and you're able to authenticate fine.
      4. Now try to add the site again but using the final URL. Check that you're able to authenticate fine.
      5. Now try to add a 3.1 site without any redirect and with login in the app. Check that you're able to authenticate fine.
      6. Now configure a site that isn't master with a redirect.
      7. In the app, try to access that site. Check that in the credentials screen you see the URL you wrote (not the final URL) and you're not able to authenticate.
      Show
      This issue should be tested both in Android and iOS. Configure a master site with a redirect. E.g. in my httpd.conf I put this: Redirect "/test" "/stable_master" Make sure the authentication is configured to be in the app, not in browser. In the app, try to add the site using the URL that will be redirected (in my example above, /test). Check that in the credentials screen you see the final URL and you're able to authenticate fine. Now try to add the site again but using the final URL. Check that you're able to authenticate fine. Now try to add a 3.1 site without any redirect and with login in the app. Check that you're able to authenticate fine. Now configure a site that isn't master with a redirect. In the app, try to access that site. Check that in the credentials screen you see the URL you wrote (not the final URL) and you're not able to authenticate.
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • Moodle App 3.7.1

      Now that MDL-65794 has been integrated we can use GET requests to get the site info, that way redirects should work fine.

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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