-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.5, 3.4.1, 3.5
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-61716-master -
When Moodle requests additional scopes in oauth2 authentication, userinfo field names from these non standard scopes can have a variety of different formats to ensure uniqueness. ie:
{"sub": "blah@gmail.com", ... |
"http://example.com/unique_id": "unique_id_at_example.com"} |
When trying to map second field to moodle internal field, this is stripped based on an alphanumext regex in admin/tool/oauth2/userfieldmappings.php
The field ends up as
httpexamplecomunique_id
|
and should be
http://example.com/unique_id |