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

Auto-login only works in first iframe if several are displayed at the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9.4
    • Fix Version/s: 3.9.5
    • Component/s: H5P
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device. If you test in iOS, make sure to enable "Allow Cross-Website Tracking" in the app native settings.

      1. In web as teacher, create a page and put 3 iframes pointing to the same site (different URLs). It's important that the iframes point to somewhere that requires login, e.g. activities. There's one already created in Master > MM Dev Testing > Resource: Page > Page with several iframes to current site.
      2. In the app, open the page. Check that the app authenticates you in all the iframes, not just the first one.
      Show
      This issue only needs to be tested in 1 device. If you test in iOS, make sure to enable "Allow Cross-Website Tracking" in the app native settings. In web as teacher, create a page and put 3 iframes pointing to the same site (different URLs). It's important that the iframes point to somewhere that requires login, e.g. activities. There's one already created in Master > MM Dev Testing > Resource: Page > Page with several iframes to current site. In the app, open the page. Check that the app authenticates you in all the iframes, not just the first one.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.5

      Description

      The app tries to auto-login if there is an iframe pointing to the current site. However, if there are several iframes like this in the same page, only the first one works because the user is only allowed to request one auto-login key every 6 minutes.

      In this case, the app should render the successful iframe first and, when done, load the rest so they use the same session.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Pau Ferrer Pau Ferrer
            Tester:
            Isabel Renedo Rouco Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              27/Aug/21