Booked Scheduler Community Support
February 24, 2020, 12:50:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: phpScheduleIt CAS Authentication plugin  (Read 10294 times)
jlgerfen
Newbie
*

Karma: 0
Posts: 33


« on: October 07, 2013, 02:36:26 PM »

I kept seeing sporadic posts & hacks to get CAS/SAML authentication support into the phpScheduleIt software. For those that might need this functionality please follow the instructions below.

1. First change into the plugins directory
Code:
shell> cd /path/to/phpScheduleIt/plugins/Authentication

2. Clone the git repository I have setup (requires the git client)
Code:
shell> git clone --recursive https://github.com/marriott-library/phpScheduleIt2-CAS.gi

Or you can always download it from https://github.com/marriott-library/phpScheduleIt2-CAS/archive/master.zip. Please note that you will have to also download and extract the latest phpCAS instance from https://github.com/Jasig/phpCAS/archive/master.zip if you choose to do it manually.

3. Copy empty config file & configure for your environment
Code:
shell> cp CAS.config.dist.php CAS.config.php

Here is a sample configuration detailing the various options available.

Code:
<?php

/**
 * LICENSE: This source file is subject to version 3.01 of the GPL license
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/licenses/gpl.html. If you did not receive a copy of
 * the GPL License and are unable to obtain it through the web, please
 *
 * @package phpScheduleIt-CAS
 * @author Jason Gerfen <jason.gerfen@gmail.com>
 * @license http://www.gnu.org/licenses/gpl.html GPL License 3
 */

/*
 * @var {Object} CAS version specification
 * @example CAS_VERSION_2_0
 */
$conf['version'] = CAS_VERSION_2_0;

/*
 * @var {String} CAS service URL
 */
$conf['url'] = '';

/*
 * @var {Number} CAS service tcp port
 */
$conf['port'] = 443;

/*
 * @var {String} CAS service path (FQDN path component)
 */
$conf['path'] = '';

/*
 * @var {String} FQDN for redirection after logout
 */
$conf['logout'] = '';

/*
 * @var {String} Certificate authority file
 */
$conf['ca'] = '';

/*
 * @var {String} CAS client log (optional)
 */
$conf['log'] = '';

/*
 * @var {String} Email suffix (optional)
 */
$conf['email_suffix'] = '';

Bugs, feature requests or just general questions please report them @ https://github.com/jas-/phpScheduleIt2-CAS/issues
« Last Edit: March 27, 2014, 12:11:28 PM by jlgerfen » Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 6409


WWW
« Reply #1 on: October 07, 2013, 02:58:25 PM »

Thanks!
Logged
jlgerfen
Newbie
*

Karma: 0
Posts: 33


« Reply #2 on: October 07, 2013, 03:57:15 PM »

No worries! Thanks for the dev work on phpScheduleIt
Logged
rafaromo
Newbie
*

Karma: 0
Posts: 1


« Reply #3 on: April 29, 2014, 09:09:06 AM »

I have installed the plugin but does´t work for me. I get the error:

Declaration of CAS::HandleLoginFailure() must be compatible with IAuthentication::HandleLoginFailure(IAuthenticationPage $loginPage)

Any Suggestion?

Thanks in advance
Logged
jlgerfen
Newbie
*

Karma: 0
Posts: 33


« Reply #4 on: May 22, 2014, 12:46:01 PM »

Which version? Can you also post your configuration? This was tested against an older version of phpScheduleIt2
Logged
stonej
Newbie
*

Karma: 0
Posts: 2


« Reply #5 on: July 11, 2014, 07:05:41 AM »

Hello,

I'm getting the same error above :

Declaration of CAS::HandleLoginFailure() must be compatible with IAuthentication::HandleLoginFailure(IAuthenticationPage $loginPage)

Using 2.4.2 - which config do you need ?

Thanks
Logged
Balsera
Newbie
*

Karma: 0
Posts: 3


« Reply #6 on: October 28, 2014, 07:50:02 AM »

I have the same problem. Anybody can help?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!