Hi all,
We've got the OAuth2 plugin working for Moodle, so now have the Google login button on the course. The Moodle is staff-only though, so I need a way of restricting it from authentication students. A RegEx would do this, we have our teacher e-mail addresses as fsurname@ (f being the first letter of their first name) whereas students are f.surname@.
Is there any way of getting the OAuth2 plugin to check for a period before the @ sign, and if so - deny login?
Alternatively, is there any way of the OAuth2 plugin bringing across a role from Google that could be used to decide between Staff and Student (like the Google OU). I'd then be on to the problem of allowing enrollment to a course from only a certain role, but a bit further than now.
Thanks so much!