Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User login reset first name, last name, email address and id number of auth_oidc users, regardless of mapping settings #1427

Closed
weilai-irl opened this issue Oct 8, 2020 · 4 comments · Fixed by #1428 or #1429
Assignees

Comments

@weilai-irl
Copy link
Collaborator

We have noticed that on every user login for users using auth_oidc, Moodle users' first name, last name, email address and ID number profile fields are always synced to the value set in Office 365, regardless of profile field settings in local_o365.

This needs to be addressed.

@danmarsden
Copy link
Contributor

just commented on one of those PR's - changing one hard-coded value to another hard-coded value is the wrong approach - what really needs to happen is the ability for an admin to choose what is locked/unlocked etc - like the core auth plugins - and like some of the other 3rd party auth plugins.

@weilai-irl
Copy link
Collaborator Author

@danmarsden

Hi Dan,

Thank you for your comments. Please see my reply at #1429 (comment).

In short, I agree adding the lock option would be desired, and will be created as a feature request, and implemented in the near future releases. Field mapping and sync options are existing features, and will stay at their current location, but links will be added to auth_oidc to point to it.

Regards,
Lai

@danmarsden
Copy link
Contributor

Thanks @weilai-irl - basically all of the hard-coded items in that "forced_config" array here:
https://github.com/microsoft/moodle-auth_oidc/blob/master/classes/loginflow/base.php#L43

should really be configurable so that the admin can choose what is locked, and when these fields should be updated (on login/on create/never) - sometimes the external Auth connection is used only for authentication purposes, and an HR sync process or other external source is used for other user profile fields so you don't want the authentication plugin to overwrite what is stored in Moodle.

@weilai-irl
Copy link
Collaborator Author

Hi @danmarsden,

Thank you for your comments. I agree they make sense. We will log this a potential improvement and schedule it for upcoming releases.

Regards,
Lai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment