Here's our situation.
The usual process via a browser:
- Our users visit the Moodle site which does not have the Login panel - it's an 'open' front page
- There is a link to login
- This directs them to a login portal
- Here they can choose the Moodle site they need to access (we do this as users can access more than one)
- They click on the link and enter the moodle site
Can anyone advise on how we can link this to Mobile/Desktop logins? Our users do not physically enter a username or password via Moodle; this is all handled via the login portal.
Hope you can help.
Thanks - Dan
If a user is not logged in, and they try to access a page that requires them to be, are they automatically redirected to the login portal, and then back to the page they were trying to access? If this all works correctly, you should be able to tell the app to use SSO via embedded browser (the setting is in Site Administration > Mobile app > Mobile authentication).
This works (IIRC) by opening /admin/tool/mobile/launch.php in the embedded browser, which does a login check. If they aren't logged in, they should get sent to the login screen, and redirected back to launch.php after. Once they are logged in, launch.php generates their web service token and uses a clever URL to send their token back to the app.
thank you for sharing!!
Thank you both for your help! I will pass this on and hope that the SSO Embedded option works as expected.