Moodle Mobile and Google SSO

Moodle Mobile and Google SSO

by Lars Lyngsøe Højberg -
Number of replies: 13

Hi all

I am very interested in getting MoodleMobile to work with Google Oauth/SSO. Is it possible or will it be possible in a nearby future?

/Lars

Average of ratings: -
In reply to Lars Lyngsøe Højberg

Re: Moodle Mobile and Google SSO

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Lars,

if you install the Moodle Mobile additional features plugin: https://docs.moodle.org/en/Moodle_Mobile_additional_features and configure it to force login "Via a browser" you will be able to connect to your site using the Moodle auth method configured (Google SSO for example).

The Mobile app have to delegate the authentication in Moodle, we won't supporting authentication & authorization methods like Google SSO natively.

Juan



In reply to Juan Leyva

Ang: Re: Moodle Mobile and Google SSO

by Lars Lyngsøe Højberg -
Hi Juan 


Yes I've done that and when I log in the app redirects me to the browser/moodlepage correctly. When I try to login via Google Oauth2 module the page returns an error "Automatic token generation is not available to site administrators (they must create a token manually in th site)".

Do I have to create tokens manually and individually for every user using Google Authentification?

Thanks

/Lars 

In reply to Juan Leyva

Re: Moodle Mobile and Google SSO

by Sourabh Maheshwari -

Hi Juan,

Long time!!

Thanks for adding this new feature "via embedded browser".

Could you please check my website www.saamarthyaved.com . I am not being able to get both these "via a browser" and via embedded browser working. It was working though when I embedded Google Oath 2  two months ago.


Thanks and Regards,

Sourabh




In reply to Sourabh Maheshwari

Re: Moodle Mobile and Google SSO

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

it seems local_mobile is not installed or the directory where is installed is restricted by the web server:

http://www.saamarthyaved.com/local/mobile/check.php?service=local_mobile

I get a 403 error if I try that url

Juan

In reply to Juan Leyva

Re: Moodle Mobile and Google SSO

by Sourabh Maheshwari -

Hi,

I have checked with the hosting company and this is what I got

"I have checked all permissions of your account is correct, and url http://www.saamarthyaved.com/local/mobile/check.php?service=local_mobileis showing below error.

{"error":0,"code":"3"}

"

Not sure if anything needs to be done from my side.

Thanks




In reply to Sourabh Maheshwari

Re: Moodle Mobile and Google SSO

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

I can see what's happening, after authenticating with Google the app is not launched.

This usually happens when the auth plugin is not redirecting back correctly the original request.

Can you point me to the Google Auth plugin are you using? is a custom one, a plugin from the plugins database?

Regards, Juan

In reply to Juan Leyva

Ang: Moodle Mobile and Google SSO

by Lars Lyngsøe Højberg -
Hi Juan



I'm using the extension Oauth2 auth_googleoauth2 2.2 (Build: 2015110600).

I got it working now and it redirects perfectly.



Thank You very much for your advice regarding the enabling of

moodle/webservice:createtoken

for authenticated users.



/Lars
In reply to Lars Lyngsøe Højberg

Re: Ang: Moodle Mobile and Google SSO

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Thanks for the information Lars,

Sourabh, can you confirm which Moodle plugin are you using?

Juan

In reply to Juan Leyva

Re: Moodle Mobile and Google SSO

by Sourabh Maheshwari -

Its Oauth2. Its a registered plugin with moodle.

The drag and drop in the quiz is fantastic; its very good as compared to the website version. I guess the Fill in the Blank is though not coming that fairly as you cannot see the blank.

Thanks

Sourabh

 

In reply to Sourabh Maheshwari

Re: Moodle Mobile and Google SSO

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Sourabh,

can you confirm that you are using this plugin? https://moodle.org/plugins/auth_googleoauth2 if so, is the same that Lars is using :s

Juan

In reply to Juan Leyva

Re: Moodle Mobile and Google SSO

by Sourabh Maheshwari -

Yes we are using the same plugin. I am getting embedded browser and quizes in the app now. Thanks

In reply to Juan Leyva

Re: Moodle Mobile and Google SSO

by Sourabh Maheshwari -

We are getting this error again and what I did yesterday was to update the additional mobile feature plugin as indicated in notifications.

Is there anything we have to do after updating this plugin so that the app continues to the type of login we choose than the default one.

 

Thanks