Inapp browser auto-login moodle mobile 3.2

Re: Inapp browser auto-login moodle mobile 3.2

by Dani Palou -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Sebastian,

there are only 2 ways to authenticate a user:

  1. Entering the username and password (this gives you the user token).
  2. Using the user token (obtained in the step above).

To achieve what you want to do, you should manually create a token for the user (Site administration > Plugins > Web services > Manage tokens) and use that token to authenticate the user in a custom app, the official app doesn't support this. Please notice that this is really insecure since anyone with the token can access your site as that user.

Kind regards,

Dani