Skip to content

Commit

Permalink
Issue #768: Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahjcotton committed Oct 4, 2023
1 parent 47b3d80 commit ddc33de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Features not yet implemented:
## Branches

| Moodle version | Branch | PHP | SimpleSAMLphp |
| ----------------- | ------------------ | ---- | ------------- |
| Moodle 3.9+ | `MOODLE_39_STABLE` | 7.2+ | v1.19.5 |
| ----------------- | ------------------ | ---- |---------------|
| Moodle 3.9+ | `MOODLE_39_STABLE` | 7.2+ | v2.0.5 |
| Totara 12+ | `TOTARA_12_STABLE` | 7.2+ | v1.19.1 |
| Moodle 3.5 to 3.8 | `MOODLE_35_STABLE` | 7.2+ | v1.18.8 |
| Moodle 2.7 to 3.4 | `27_34STABLE` | 5.5+ | v1.15.4 |
Expand Down
22 changes: 22 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,5 +388,27 @@ function xmldb_auth_saml2_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2022031503, 'auth', 'saml2');
}

if ($oldversion < 2023100300) {
// We are removing some options from the admin settings page, therefore if
// either of those options have been set we need to remove them from the database.
$protocols = get_config('auth_saml2', 'assertionsconsumerservices');
$protocols = explode(',', $protocols);
$a = array_search('urn:oasis:names:tc:SAML:1.0:profiles:browser-post', $protocols);
$b = array_search('urn:oasis:names:tc:SAML:1.0:profiles:artifact-01', $protocols);

if ($a) {
unset($protocols[$a]);
}

if ($b) {
unset($protocols[$b]);
}

$protocols = implode(',', $protocols);
set_config('assertionsconsumerservices', $protocols, 'auth_saml2');

upgrade_plugin_savepoint(true, 2023100300, 'auth', 'saml2');
}

return true;
}
2 changes: 1 addition & 1 deletion thirdpartylibs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<library>
<location>.extlib/simplesamlphp</location>
<name>SimpleSamlPHP</name>
<version>1.17.7</version>
<version>2.0.5</version>
<license>LGPL</license>
<licenseversion>2.1+</licenseversion>
</library>
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2022111701; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 2022111701; // Match release exactly to version.
$plugin->version = 2023100300; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 2023100300; // Match release exactly to version.
$plugin->requires = 2017051509; // Requires PHP 7, 2017051509 = T12. M3.3
// Strictly we require either Moodle 3.5 OR
// we require Totara 3.3, but the version number
Expand Down

0 comments on commit ddc33de

Please sign in to comment.