Skip to content

Commit

Permalink
MDL-78620 auth_cas: Set Moodle files after phpCAS upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cescobedo authored and HuongNV13 committed Aug 10, 2023
1 parent 2d7946a commit 1a04745
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
24 changes: 24 additions & 0 deletions auth/cas/CAS/readme_moodle.txt
@@ -0,0 +1,24 @@
Description of phpCAS 1.4.0 import into Moodle

Last release package can be found in hhttps://github.com/apereo/phpCAS/releases

NOTICE:
* Before running composer command, make sure you have the composer version updated.
* Composer version 2.2.4 2022-01-08 12:30:42

STEPS:
* Create a temporary folder outside your moodle installation
* Execute `composer require apereo/phpcas:VERSION`
* Check any new libraries that have been added and make sure they do not exist in Moodle already.
* Remove the old 'vendor' directory in auth/cas/CAS/
* Copy contents of 'vendor' directory
* Create a commit with only the library changes
* Update auth/cas/thirdpartylibs.xml
* Apply the modifications described in the CHANGES section
* Create another commit with the previous two steps of changes

CHANGES:
* Remove all the hidden folders and files in vendor/apereo/phpcas/ (find . -name ".*"):
- .codecov.yml
- .gitattributes
- .github
3 changes: 2 additions & 1 deletion auth/cas/auth.php
Expand Up @@ -29,7 +29,8 @@
defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot.'/auth/ldap/auth.php');
require_once($CFG->dirroot.'/auth/cas/CAS/CAS.php');
require_once($CFG->dirroot.'/auth/cas/CAS/vendor/autoload.php');
require_once($CFG->dirroot.'/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php');

/**
* CAS authentication plugin.
Expand Down
2 changes: 1 addition & 1 deletion auth/cas/thirdpartylibs.xml
Expand Up @@ -4,7 +4,7 @@
<location>CAS</location>
<name>CAS</name>
<license>Apache</license>
<version>1.3.8</version>
<version>1.4.0</version>
<licenseversion>2.0</licenseversion>
</library>
</libraries>

0 comments on commit 1a04745

Please sign in to comment.