Skip to content
Snippets Groups Projects
Commit ea0c0216 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/cas

parent d3b14d21
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class CAS extends \SimpleSAML\Auth\Source ...@@ -29,7 +29,7 @@ class CAS extends \SimpleSAML\Auth\Source
private $ldapConfig; private $ldapConfig;
/** /**
* @var cas configuration * @var array cas configuration
*/ */
private $casConfig; private $casConfig;
...@@ -178,6 +178,7 @@ class CAS extends \SimpleSAML\Auth\Source ...@@ -178,6 +178,7 @@ class CAS extends \SimpleSAML\Auth\Source
/** /**
* Called by linkback, to finish validate/ finish logging in. * Called by linkback, to finish validate/ finish logging in.
* @param array $state * @param array $state
* @return void
*/ */
public function finalStep(&$state) public function finalStep(&$state)
{ {
...@@ -213,6 +214,7 @@ class CAS extends \SimpleSAML\Auth\Source ...@@ -213,6 +214,7 @@ class CAS extends \SimpleSAML\Auth\Source
* Log-in using cas * Log-in using cas
* *
* @param array &$state Information about the current authentication. * @param array &$state Information about the current authentication.
* @return void
*/ */
public function authenticate(&$state) public function authenticate(&$state)
{ {
...@@ -241,6 +243,7 @@ class CAS extends \SimpleSAML\Auth\Source ...@@ -241,6 +243,7 @@ class CAS extends \SimpleSAML\Auth\Source
* showing the user a page, or redirecting, this function should return. * showing the user a page, or redirecting, this function should return.
* *
* @param array &$state Information about the current logout operation. * @param array &$state Information about the current logout operation.
* @return void
*/ */
public function logout(&$state) public function logout(&$state)
{ {
......
...@@ -18,6 +18,7 @@ $state['cas:ticket'] = (string) $_GET['ticket']; ...@@ -18,6 +18,7 @@ $state['cas:ticket'] = (string) $_GET['ticket'];
assert(array_key_exists(\SimpleSAML\Module\cas\Auth\Source\CAS::AUTHID, $state)); assert(array_key_exists(\SimpleSAML\Module\cas\Auth\Source\CAS::AUTHID, $state));
$sourceId = $state[\SimpleSAML\Module\cas\Auth\Source\CAS::AUTHID]; $sourceId = $state[\SimpleSAML\Module\cas\Auth\Source\CAS::AUTHID];
/** @var \SimpleSAML\Module\cas\Auth\Source\CAS|null $source */
$source = \SimpleSAML\Auth\Source::getById($sourceId); $source = \SimpleSAML\Auth\Source::getById($sourceId);
if ($source === null) { if ($source === null) {
throw new \Exception('Could not find authentication source with id '.$sourceId); throw new \Exception('Could not find authentication source with id '.$sourceId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment