forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-71713-master' of https://github.com/cescobedo/moodle
- Loading branch information
Showing
84 changed files
with
3,435 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
Description of phpCAS 1.3.8 library import | ||
Description of phpCAS 1.4.0 import into Moodle | ||
|
||
* downloaded source code from https://github.com/apereo/phpCAS/releases | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/** | ||
* Licensed to Jasig under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
* | ||
* Jasig licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @file CAS.php | ||
* @category Authentication | ||
* @package PhpCAS | ||
* @author Adam Franco <[email protected]> | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 | ||
* @link https://wiki.jasig.org/display/CASC/phpCAS | ||
*/ | ||
|
||
require_once __DIR__.'/source/CAS.php'; | ||
|
||
trigger_error('Including CAS.php is deprecated. Install phpCAS using composer instead.', E_USER_DEPRECATED); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name" : "apereo/phpcas", | ||
"description" : "Provides a simple API for authenticating users against a CAS server", | ||
"keywords" : [ | ||
"cas", | ||
"jasig", | ||
"apereo" | ||
], | ||
"homepage" : "https://wiki.jasig.org/display/CASC/phpCAS", | ||
"type" : "library", | ||
"license" : "Apache-2.0", | ||
"authors" : [{ | ||
"name" : "Joachim Fritschi", | ||
"homepage" : "https://github.com/jfritschi", | ||
"email" : "[email protected]" | ||
}, { | ||
"name" : "Adam Franco", | ||
"homepage" : "https://github.com/adamfranco" | ||
}, { | ||
"name" : "Henry Pan", | ||
"homepage" : "https://github.com/phy25" | ||
} | ||
], | ||
"require" : { | ||
"php" : ">=7.0.0", | ||
"ext-curl" : "*", | ||
"psr/log" : "^1.0.0" | ||
}, | ||
"require-dev" : { | ||
"monolog/monolog" : "^1.0.0", | ||
"phpunit/phpunit" : ">=4.8.35 <8" | ||
}, | ||
"autoload" : { | ||
"classmap" : [ | ||
"source/" | ||
] | ||
}, | ||
"autoload-dev" : { | ||
"psr-4" : { | ||
"PhpCas\\" : "test/CAS/" | ||
} | ||
}, | ||
"scripts" : { | ||
"test" : "phpunit" | ||
}, | ||
"extra" : { | ||
"branch-alias" : { | ||
"dev-master" : "1.3.x-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
bootstrap="source/CAS.php" | ||
convertNoticesToExceptions="false" | ||
colors="true" | ||
stderr="true" | ||
backupGlobals="true" | ||
> | ||
|
||
<testsuites> | ||
<testsuite name="phpCAS Tests"> | ||
<directory>test/CAS/Tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="false"> | ||
<directory>source/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.