-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.5
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE
-
MDL-73827-master -
-
Moppies Kanban
I've faced this issue while running the certification process for Moodle 4.0 (but I've been able to reproduce it in 3.11 too).
Requirements
- Run your site with public access (use ngrok or similar).
Setup
- Login as admin.
- Go to "Site administration > Server > OAuth 2 services" and create a new "Open Badges" service with the following information:
- Name: IMS Global Badge
- Service base URL: https://certification.imsglobal.org/badgeconnect
- Leave Client ID and Client secret empty.
- This service will be used: Internal services only
- In the Moodle site, go to "Site administration > Badges > Manage backpacks" and "Add a new backpack" with the following data:
- Backpack API URL: https://certification.imsglobal.org/badgewebapi/rest/ims/ob/v2p1
- Backpack URL: https://certification.imsglobal.org/badgeconnect
- API version supported: IMS OBv2.1
- OAuth2 services: IMS Global Badge
Steps to reproduce
- Go to the user "Preferences" page and then select "Backpack settings".
- Select "https://certification.imsglobal.org/badgeconnect" as "Backpack provider".
- Click the button "Connect to backpack".
- Login using "badgeuser1" / "user1rocks".
- Check the screen requesting your permission is displayed with the following application access permissions:
- Get Open Badges Profile
- Create Open Badges Assertion
- Get Open Badges Assertions
- Offline Access
- Click the button "Yes, Allow".
Expected behaviour
The backpack is connected
Current behaviour
The following error is displayed: "Exception - Argument 1 to core\auth2\client::map_userifno_to_fields() must be an instance of stdClass, null given, called in [dirroot]/dir/classes/oauth2/client.php on line 504". It's due because the response when the userinfo endpoint is called is "The URL is blocked.".
- is a regression caused by
-
MDL-70649 Allow plugins to augment the cURL security helper via callback
- Closed