Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier)
Maintained by
Sergio Rabellino
Sign-in with an Oauth2 provider. The first time you sign-in, a new account is created.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Thanks a lot for your quick response and the links.
I am working on french traduction of your plugin and I have another question about exeption you use in your plugin.
Why don't you use $module parameter when you throw moodle_exception ?
For ex : throw new moodle_exception('couldnotgetuseremail');
Instead of throw new moodle_exception('couldnotgetuseremail','auth_googleoauth2');
Thus, the translation is not taken into account for following error codes : unknown_oauth2_provider, couldnotgetuseremail, facebook_failure, google_failure, linkedin_failure...
Do you plan to add this kind of modifications to the next version ?
Thanks,
We have a problem translating the module for 2.8, in AMOS we cannot see versions greater than 2.5 so the new strings are not included.
Thanks!
Pau
I am planning to do it but I don't think it will arrive before, at least, a month. I am working on this plugin only when I have some free time and the desire to work on it
To support Twitter I was thinking using https://github.com/thephpleague/oauth1-client as library. You can follow https://github.com/mouneyrac/moodle-auth_googleoauth2/issues/54
Cheers,
Jerome
I wonder if you plan to add Twitter Authentication in your plugin roadmap.
If this is not the case, can you just explain the reasons (technical issue, lake of time...) ?
Thanks,
How is it possible to place the sign in button below the login not top of the page? Thanks..
I have enabled google oauth in our moodle instance
Actually I am using a a customised alternate login url to login to it.
So could you please advice me on how to get the google oauth option in my customised alternate login url to login.
-Derek
The issue "error/couldnotgetuseremail" is back on my page. I didn't any update and use the newest version of this oauth Plugin.
I have activated the "Google+ API" on the Google Developer Console.
Also, I changed the Api key and secret either created a new project on google site, nothing has helped.
As someone an idea what it could be?
Thanks in advance!
I just checked https://developers.google.com/accounts/docs/OpenIDConnect it seems to be the same calls/code, I think it will work. They just added some openid parameters into the mix in this documentation. Note that months ago I already fixed the deprecated API in order to use Google+ API. Let me know if there is any issue, it's hard to always follow Google changes, they love changes