Skip to content

Commit 0e7363a

Browse files
committed
Move phpCAS module to composer
Signed-off-by: Lance Albertson <[email protected]>
1 parent 6286408 commit 0e7363a

File tree

114 files changed

+19694
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+19694
-8
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"description": "Web application for openprinting.org",
44
"type": "project",
55
"require": {
6-
"smarty/smarty": "^5.3"
6+
"smarty/smarty": "^5.3",
7+
"apereo/phpcas": "^1.3"
78
},
89
"license": "GPL-2.0-or-later",
910
"authors": [

composer.lock

Lines changed: 58 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/common.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
include('inc/siteconf.php');
99
$CONF = new SiteConfig();
10-
include($CONF->casModulePath . '/CAS.php');
11-
1210
include('inc/db.php');
1311
include('inc/page.php');
1412

inc/siteconf-DEV.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class SiteConfig {
2323

2424
public $authType = 'cas';
2525

26-
public $casModulePath = '/path/to/cas/module';
2726
public $casServer = 'cas.example.com';
2827
public $casPort = 443;
2928
public $casContext = '/cas';

inc/siteconf-PROD.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class SiteConfig {
2323

2424
public $authType = 'cas';
2525

26-
public $casModulePath = '/path/to/cas/module';
2726
public $casServer = 'cas.example.com';
2827
public $casPort = 443;
2928
public $casContext = '/cas';

vendor/apereo/phpcas/.buildpath

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<buildpath>
3+
<buildpathentry kind="src" path=""/>
4+
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
5+
</buildpath>

vendor/apereo/phpcas/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
docs/examples/config.php
2+
utils/build.properties
3+
utils/dist/
4+
utils/tmp/
5+
utils/starting_HEAD
6+
/.settings

vendor/apereo/phpcas/.project

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>phpcas-devel</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.validation.validationbuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.dltk.core.scriptbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.php.core.PHPNature</nature>
21+
</natures>
22+
</projectDescription>

vendor/apereo/phpcas/.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: php
2+
php:
3+
- "5.3"
4+
- "5.4"
5+
- "5.5"
6+
script:
7+
- cd test
8+
- phpunit TestSuite.php
9+

vendor/apereo/phpcas/CAS.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
/**
4+
* Licensed to Jasig under one or more contributor license
5+
* agreements. See the NOTICE file distributed with this work for
6+
* additional information regarding copyright ownership.
7+
*
8+
* Jasig licenses this file to you under the Apache License,
9+
* Version 2.0 (the "License"); you may not use this file except in
10+
* compliance with the License. You may obtain a copy of the License at:
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*
20+
* PHP Version 5
21+
*
22+
* @file CAS.php
23+
* @category Authentication
24+
* @package PhpCAS
25+
* @author Adam Franco <[email protected]>
26+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
27+
* @link https://wiki.jasig.org/display/CASC/phpCAS
28+
*/
29+
30+
require_once dirname(__FILE__).'/source/CAS.php';

0 commit comments

Comments
 (0)