Login With Google/Facebook

Login With Google/Facebook

by Aniket Sankpal -
Number of replies: 1

Hi, I have installed moodle 3.2 on my server. And also configured to login with google account.

Many users do login with google account on moodle website.

But I want to manage this in moodle mobile app. How will the user token get generated for mobile service if the user has first logged in as google account on the website? When the user logged in as google it won't save username and password in the user table.

Since login/token.php need username and password to get or generate a token. What is the best way to give an app access to this kind of users? Or how I can get the token?

Average of ratings: -
In reply to Aniket Sankpal

Re: Login With Google/Facebook

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

Hello Aniket,

sorry for the delay in answering.

Please go to Site Administration > Mobile app > Mobile authentication. In there you should change the Type of login and set it to "Via a browser window" or "Via an embedded browser". That way the app will open your Moodle site in the device browser or an embedded browser, authenticate the user in there, and then go back to the app to complete the authentication.

Kind regards,

Dani