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.
Can you before to do that turn on debug mode to developer and check what error is produced. Indicate the error in the issue.
Thank you.
I uninstalled it when upgrading to moodle 2.5.2, and now today installed the new oauth2-release.
And then I run on a problem.
After copying the files to the moodle/auth-directory and visiting ...moodle/admin , it installed fine, but when I try to go to Admin block > Plugins > Authentication to enable the plugin and see its settings, all I get is a white screen.
This happens when trying to access the settings for the plugin both from:
.../moodle/admin/settings.php?section=manageauths
and
.../moodle/admin/auth_config.php?auth=googleoauth2
Any thoughts on why this might happen?
I can't see any new issues on github (https://github.com/mouneyrac/auth_googleoauth2/issues?direction=desc&sort=created&state=open ). It's easier to talk on each separate issues than here. Don't hesitate to provide a detailed description of this issue. Please include: Full Steps that I (or someone else willing to fix the issue) should take to reproduce the problem, as well as information about What You Expected and What Actually Happens for you.
Thanks,
Jerome
(1) Can't delete Google authenticated usernames on my Moodle
(2) E-mail notifications come into my inbox with some cryptic code instead of decriptive code.
See:
https://github.com/mouneyrac/auth_googleoauth2/issues?direction=desc&sort=created&state=open
Thanks, Frankie Kam
Thank you.
I'd love to work more on my plugins but I have limited free time, so I work on the security/pull requests issue first.
Yes, I saw your Moodle account on my site and II don't know whether to laugh or to cry!
I spent N hours trying to fix the problem which was never a problem. In fact it was working fine all along! I think I'm gonna cry first then laugh whole-heartedly!
What happened was that I had earlier created an account the normal Moodle way and I used my Google E-mail address.
So many months later (now) when I click on the Google OAuth icon link in my login.php file, the code throws me back to the login screen simple because a Moodle account ALREADY exists where the user's email value is the same as my Gmail address!! LOL!!!!
Of course I am very happy that your plugin works on my site. I mean, to be doubly sure, I deleted the 'offending' Moodle user account, and when I click the Google login icon, vioila! Your plugin creates the user account, as what it was programmed to do, with my Gmail account.
After that, logging into my site with the Gmail icon link works everytime.
Coming back to the part that confused me - can the code be modified so that if it detects a user account that has the same Gmail account, can the code throw a warning message. Something like, "A username with the same Gmail address as yours has been detected!" ? That would have saved me hours of frustration.
A finally relieved and a very happy
Frankie Kam
it seems that you have fixed it, I successfully registered with Google on your site. Cheers.
However, I have come across another issue. The City & Country fields aren't being automatically populated when creating a new user using GoogleOAuth2.0. I have the location settings set up in Moodle and they are pre-filled when adding a new user manually in Moodle, but they remain blank when loggin in with OAuth for the first time. I have the City & Country fileds unlocked in the OAuth plugin settings, however the same problem occurs when they are locked.
Any ideas?
If that doesn't work, check your redirect URL in you google console?