diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-10-14 09:58:34 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-10-14 09:58:34 +0000 |
| commit | 5d11968b69865ae05967ec278860609b2e4411a7 (patch) | |
| tree | 2d08e911d8e8a80c970dfb63b5aca42c57b3f4bb /app/controllers/cas.php | |
| parent | 9af058a8d9b037afda22f3c66140712567ebecd7 (diff) | |
fix usage of phpCAS::proxy(), re #1573
Merge request studip/studip!1074
Diffstat (limited to 'app/controllers/cas.php')
| -rw-r--r-- | app/controllers/cas.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/cas.php b/app/controllers/cas.php index 37cf680..6800844 100644 --- a/app/controllers/cas.php +++ b/app/controllers/cas.php @@ -24,9 +24,11 @@ class CasController extends StudipController $pgt = Request::get('pgtId'); $pgt_iou = Request::get('pgtIou'); $cas_config = $GLOBALS['STUDIP_AUTH_CONFIG_CAS']; - $cas = phpCAS::proxy(CAS_VERSION_2_0, $cas_config['host'], $cas_config['port'], $cas_config['uri'], false); - $pgt_storage = new CAS_PGTStorage_Cache($cas); + phpCAS::proxy(CAS_VERSION_2_0, $cas_config['host'], $cas_config['port'], $cas_config['uri'], false); + + $pgt_storage = new CAS_PGTStorage_Cache(phpCAS::getCasClient()); $pgt_storage->write($pgt, $pgt_iou); + $this->render_nothing(); } } |
