Logging into Mobile App

Logging into Mobile App

by Dan Jeffries -
Number of replies: 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

Average of ratings: -
In reply to Dan Jeffries

Re: Logging into Mobile App

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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.

In reply to Mark Johnson

Re: Logging into Mobile App

by Dan Jeffries -

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

Dan