Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.9.5
-
Hide
This issue only needs to be tested in 1 device.
Test master site
- In a master site as admin, go to "Site administration > Mobile app >
Mobile authentication" and set autologinmintimebetweenreq to 3 minutes. - In the app, login in that master site.
- Open any activity.
- Open the activity info side modal using the top-right icon.
- Open the inspector and go to the Network requests tab.
- Click the icon to open in browser, next to the activity title. Please remember the time you did this.
- Check that the browser is opened and you're automatically authenticated.
- In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key.
- In browser, close the session.
- In the app, click the icon to open in browser again.
- Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key.
- After 3 minutes have passed from step 6, click the open in browser again.
- Check that the browser is opened and you're automatically authenticated.
Test older site
- In the app, login in a 3.11 or older site.
- Open any activity.
- Open the activity info side modal using the top-right icon.
- Open the inspector and go to the Network requests tab.
- Click the icon to open in browser, next to the activity title. Please remember the time you did this.
- Check that the browser is opened and you're automatically authenticated.
- In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key.
- In browser, close the session.
- In the app, after 3 minutes have passed from step 6, click the icon to open in browser again.
- Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key.
- After 6 minutes have passed from step 6, click the open in browser again.
- Check that the browser is opened and you're automatically authenticated.
ShowThis issue only needs to be tested in 1 device. Test master site In a master site as admin, go to "Site administration > Mobile app > Mobile authentication" and set autologinmintimebetweenreq to 3 minutes. In the app, login in that master site. Open any activity. Open the activity info side modal using the top-right icon. Open the inspector and go to the Network requests tab. Click the icon to open in browser, next to the activity title. Please remember the time you did this. Check that the browser is opened and you're automatically authenticated. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key. In browser, close the session. In the app, click the icon to open in browser again. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key. After 3 minutes have passed from step 6, click the open in browser again. Check that the browser is opened and you're automatically authenticated. Test older site In the app, login in a 3.11 or older site. Open any activity. Open the activity info side modal using the top-right icon. Open the inspector and go to the Network requests tab. Click the icon to open in browser, next to the activity title. Please remember the time you did this. Check that the browser is opened and you're automatically authenticated. In the Network requests, check that you see a WS call to tool_mobile_get_autologin_key. In browser, close the session. In the app, after 3 minutes have passed from step 6, click the icon to open in browser again. Check that the browser is opened, but you aren't authenticated now. In the Network requests check that now there is no request to get autologin key. After 6 minutes have passed from step 6, click the open in browser again. Check that the browser is opened and you're automatically authenticated. - In a master site as admin, go to "Site administration > Mobile app >
-
MOODLE_39_STABLE
-
MOODLE_400_STABLE
-
Moodle App 4.0
Description
Introduced by MDL-69555, previously it was hardcoded to 6 minutes in both the site and the app
Attachments
Issue Links
- is blocked by
-
MDL-69555 Make duration of QR login and auto-login time between requests configurable
-
- Closed
-