Moodle for mobile

Logging into Mobile App

 
Picture of Dan Jeffries
Logging into Mobile App
 

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

 
Average of ratings: -
Picture of Mark Johnson
Re: Logging into Mobile App
Core developersParticularly helpful MoodlersPlugin 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.

 
Average of ratings: -
Picture of Isabel Renedo
Re: Logging into Mobile App
 

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.

 
Average of ratings: -
Picture of zara wymark
Re: Logging into Mobile App
 

thank you for sharing!!

 
Average of ratings: -
Picture of Dan Jeffries
Re: Logging into Mobile App
 

Thank you both for your help! I will pass this on and hope that the SSO Embedded option works as expected.

Dan

 
Average of ratings: -