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

Upgrade OTPHP to 11.3.0

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_405_STABLE
    • MDL-79678_upgrade-otphp
    • Hide

      Test are also covered by unittest.

      (Partly copied from MDL-78509)

      Prerequisites

      1. Apply the patch
      2. Do the upgrade processes until finished
        1. You can enable the mfa plugin at the end of the upgrade process or
        2. You can enable the mfa plugin by going to the Site admin > plugins > admin tools 
      3. Go to Site admin > Development > Third party libraries
        1. Verify that OTPHP's version is now 11.3.0.

      Testing

      Warning: If you have inadvertantly messed things up and locked yourself out, you can disable the whole MFA plugin from the CLI:

      php admin/cli/cfg.php --component=tool_mfa --name=enabled --set=0

      Note: Please use two different browsers for testing otherwise you will be locked by a specific factor

      1. One is for the configuration called "Site admin"
      2. The second second browser is for testing called "Testing".

      TOTP factor test (Authenticator app) - Only applied to Admins

      1. Go to Site admin > plugins > admin tools
      2. Enable the Authenticator app factor and just leave the default Settings
      3. Still in "Site admin" browser, click on user profile picture in header, the click on Preferences
      4. Click on Multi-factor authentication preferences in User account block
      5. Look for Authenticator app block under Multi-factor authentication then click on the Set up button
        1. Set Device name to any names (This field is required)
        2. Scan the QR code displayed in that page using any authenticator app
        3. Once it's added, you will get code from the app
        4. Enter the code from the app in Enter verification code for confirmation then save changes
      6. Go to "Testing" browser and login as admin
      7. Verify that you are taken to a page where you need to enter the code from the authenticator app and enter the code in Enter verification code for confirmation
      8. Verify that once the code is entered, you are taken straight to home page without pressing the Verify code button
      Show
      Test are also covered by unittest. (Partly copied from MDL-78509 ) Prerequisites Apply the patch Do the upgrade processes until finished You can enable the mfa plugin at the end of the upgrade process or You can enable the mfa plugin by going to the Site admin > plugins > admin tools  Go to Site admin > Development > Third party libraries Verify that OTPHP's version is now 11.3.0. Testing Warning : If you have inadvertantly messed things up and locked yourself out, you can disable the whole MFA plugin from the CLI : php admin/cli/cfg.php --component=tool_mfa --name=enabled --set=0 Note : Please use two different browsers for testing otherwise you will be locked by a specific factor One is for the configuration called "Site admin" The second second browser is for testing called "Testing". TOTP factor test (Authenticator app) - Only applied to Admins Go to Site admin > plugins > admin tools Enable the Authenticator app factor and just leave the default Settings Still in "Site admin" browser, click on user profile picture in header, the click on Preferences Click on Multi-factor authentication preferences in User account block Look for Authenticator app block under Multi-factor authentication then click on the Set up button Set Device name to any names (This field is required) Scan the QR code displayed in that page using any authenticator app Once it's added, you will get code from the app Enter the code from the app in Enter verification code for confirmation then save changes Go to "Testing" browser and login as admin Verify that you are taken to a page where you need to enter the code from the authenticator app and enter the code in Enter verification code for confirmation Verify that once the code is entered, you are taken straight to home page without pressing the Verify code button

      OTPHP    admin/tool/mfa/factor/totp/extlib/OTPHP    09.1.1  -->  11.3.0    https://github.com/Spomky-Labs/otphp

        1. Screenshot 2024-04-12 at 10.12.40 am.png
          Screenshot 2024-04-12 at 10.12.40 am.png
          95 kB
        2. MDL-79678.png
          MDL-79678.png
          657 kB
        3. leeway error.png
          leeway error.png
          243 kB
        4. IMG_6511.PNG
          IMG_6511.PNG
          182 kB
        5. IMG_6510.PNG
          IMG_6510.PNG
          2.79 MB

            Daniel Ziegenberg Daniel Ziegenberg
            sarjona Sara Arjona (@sarjona)
            Stevani Andolo Stevani Andolo
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 49 minutes
                1d 49m

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