Logging into Mobile App

Logging into Mobile App

από Dan Jeffries -
Αριθμός απαντήσεων: 4

Hi

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

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Dan Jeffries

Re: Logging into Mobile App

από Mark Johnson -
Φωτογραφία Core developers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers

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.

Σε απάντηση σε Mark Johnson

Re: Logging into Mobile App

από Isabel Renedo -
Φωτογραφία Moodle HQ Φωτογραφία Particularly helpful Moodlers

Mark, Thanks for your help!


Dan, the official information can be found at: https://docs.moodle.org/35/en/Moodle_app_guide_for_admins#Mobile_authentication.