-
Improvement
-
Resolution: Fixed
-
Minor
-
3.4, 3.5, 3.7
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-61767-master -
When a user is created using OAuth2 authentication profile fields are filled with his/her details (firstname, lastname, whatever else is sent from auth server..).
But when the user logs again and his/her details changed in the meantime, these details are not propagated into his/her profile.
There is a piece of code in auth/oauth2/classes/auth.php with:
/**
|
* Indicates if moodle should automatically update internal user
|
* records with data from external sources using the information
|
* from auth_plugin_base::get_userinfo().
|
*
|
* @return bool true means automatically copy data from ext to user table
|
*/
|
public function is_synchronised_with_external() { |
return false; |
}
|
which seems to be like a good place to start.
Am I missing something or is this functionality already pressent, but hidden somewhere?
There is also which says in description:MDL-58090
5. Implement a new auth plugin that displayes the installed OAuth services in a list on the login page and will login and update the user details via OAuth.