From 271809680c64a0e292022a77b85b2e36c12700e5 Mon Sep 17 00:00:00 2001 From: Wojciech Peisert Date: Thu, 3 Nov 2022 13:23:32 +0100 Subject: [PATCH] Compatible with apereo/phpCAS 1.6 --- composer.json | 2 +- src/Subfission/Cas/CasManager.php | 1 + src/config/config.php | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a288d99..6a0ded9 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require": { "php": ">=7.2.0", "illuminate/support": "^6.0|^7.0|^8.0|^9.0", - "apereo/phpcas": "^1.3" + "apereo/phpcas": "^1.6" }, "require-dev": { "phpunit/phpunit": "^8.0|^9.0", diff --git a/src/Subfission/Cas/CasManager.php b/src/Subfission/Cas/CasManager.php index cc71835..c07253a 100644 --- a/src/Subfission/Cas/CasManager.php +++ b/src/Subfission/Cas/CasManager.php @@ -118,6 +118,7 @@ protected function configureCas($method = 'client') $this->config['cas_hostname'], (int) $this->config['cas_port'], $this->config['cas_uri'], + $this->config['cas_client_service'], $this->config['cas_control_session'] ); diff --git a/src/config/config.php b/src/config/config.php index 8fbb753..be8197e 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -59,6 +59,15 @@ */ 'cas_uri' => env('CAS_URI', '/cas'), + /* + |-------------------------------------------------------------------------- + | Client service: host, port, protocol. + |-------------------------------------------------------------------------- + | Example: 'http://localhost', 'https://example.com:8888' + */ + 'cas_client_service' => env('CAS_CLIENT_SERVICE', 'http://localhost'), + + /* |-------------------------------------------------------------------------- | CAS Validation