Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76172

Error when connecting to OBv2.1

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76172-master
    • Hide

      Requirements

      1. Valid IMS account to access https://certification.imsglobal.org/certification/badgeconnect/launch.html
      2. Run your site with public access (use ngrok or similar).

       

      IMPORTANT: If at any point you need to restart the process, you’ll need to click the “Restart Testing” button and logout and login the admin user. Apart from that, you'll also need to remove the oAuth service and the backpack (before creating them again).

      Setup 1: Access to IMS Global Badge Connect Validator

      1. Access to using a valid IMS account: https://certification.imsglobal.org/certification/badgeconnect/launch.html 
      2. Read the information and press the “Get Started” button.
      3. Review your information (name, email address and organization) and “Confirm” it.
      4. Select the product you want to certify (or create a new one if it is a new major release).
      5. Select the “Service Consumer (Write)”, which is the one implemented by Moodle.
      6. Read the testing instructions and save the information (some data will be used later, such as the base API URL or the password for badgeuser1).
      7. Click the “Done” button and keep the “Auto-registration” window open, to confirm the certification process is working as expected.

      Setup 2: Prepare the Moodle site

      1. Open the Moodle site and login as admin.
      2. Create a site badge and enable it.
      3. Award this badge to the admin user (using the “Recipients” page).
      4. Go to “Site administration > Server > OAuth 2 services” and create a new “Open Badges” service with the following information:
      5. In the “IMS Global Badge Connect Validator“ tab, check that “Get manifest” and “Do Auto-Registration” have been executed.
      6. In the Moodle site, go to “Site administration > Badges > Manage backpacks” and “Add a new backpack” with the following data:

      Testing instructions

      1. Go to the user “Preferences” page and then select “Backpack settings”.
      2. Configure the backpack with the following data:
      3. Click the “Connect to backpack” button. You should be redirected to the login page for the IMS Global backpack service.
      4. Use the credentials for badgeuser1 defined in the “IMS Global Badge Connect Validator” page (right now they are “badgeuser1” / “user1rocks”). You can use the username instead of email.
      5. Accept the terms and conditions displayed.
      6. Check " Backpack is connected" is displayed.
      7. In the “IMS Global Badge Connect Validator“ tab, check that “Do Authorization Grant” and “Retrieve OAuth2 Token” have been executed too.
      Show
      Requirements Valid IMS account to access https://certification.imsglobal.org/certification/badgeconnect/launch.html Run your site with public access (use ngrok or similar).   IMPORTANT : If at any point you need to restart the process, you’ll need to click the “Restart Testing” button and logout and login the admin user. Apart from that, you'll also need to remove the oAuth service and the backpack (before creating them again). Setup 1: Access to IMS Global Badge Connect Validator Access to using a valid IMS account: https://certification.imsglobal.org/certification/badgeconnect/launch.html   Read the information and press the “Get Started” button. Review your information (name, email address and organization) and “Confirm” it. Select the product you want to certify (or create a new one if it is a new major release). Select the “Service Consumer (Write)”, which is the one implemented by Moodle. Read the testing instructions and save the information (some data will be used later, such as the base API URL or the password for badgeuser1). Click the “Done” button and keep the “Auto-registration” window open, to confirm the certification process is working as expected. Setup 2: Prepare the Moodle site Open the Moodle site and login as admin. Create a site badge and enable it. Award this badge to the admin user (using the “Recipients” page). 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 “IMS Global Badge Connect Validator“ tab, check that “Get manifest” and “Do Auto-Registration” have been executed. 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 Testing instructions Go to the user “Preferences” page and then select “Backpack settings”. Configure the backpack with the following data: Backpack provider: https://certification.imsglobal.org/badgeconnect Click the “Connect to backpack” button. You should be redirected to the login page for the IMS Global backpack service. Use the credentials for badgeuser1 defined in the “IMS Global Badge Connect Validator” page (right now they are “badgeuser1” / “user1rocks”). You can use the username instead of email. Accept the terms and conditions displayed. Check " Backpack is connected" is displayed. In the “IMS Global Badge Connect Validator“ tab, check that “Do Authorization Grant” and “Retrieve OAuth2 Token” have been executed too.
    • HQ 2-week review sprint

      MDL-75171 has caused a regression in the OBv2.1 process to authenticate a user. It has been raised while running the OBv2.1 certification process.

       

      Steps to reproduce:

      1. Configure your site to use OBv2.1.
      2. Login as a user.
      3. Go to the user "Preferences" page and then select "Backpack settings".
      4. Configure the backpack with the following data:
      5. Use the credentials for badgeuser1 defined in the "IMS Global Badge Connect Validator" page (right now they are "badgeuser1" / "user1rocks"). You can use the username instead of email.
      6. The terms and conditions should be displayed. Accept them.

      Expected behaviour:
       The " Backpack is connected" message is displayed.

      Current behaviour:
      Error: "Exception - Argument 1 passed to core\oauth2\client::map_userinfo_to_fields() must be an instance of stdClass, bool given, called in [dirroot]/lib/classes/oauth2/client.php on line 531" is displayed

        1. badges_error.png
          badges_error.png
          93 kB
        2. MDL-76172_setup1.png
          MDL-76172_setup1.png
          74 kB
        3. MDL-76172_setup2.png
          MDL-76172_setup2.png
          66 kB
        4. MDL-76172_test_1.png
          MDL-76172_test_1.png
          115 kB

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Victor Déniz Falcón Victor Déniz Falcón
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.