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

Fixes for modules/authwindowslive

parent 50a63b57
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,13 @@ class LiveID extends \SimpleSAML\Auth\Source
*/
const AUTHID = 'authwindowslive:AuthId';
/** @var string */
private $key;
/** @var string */
private $secret;
/**
* Constructor for this authentication source.
*
......@@ -57,6 +61,7 @@ class LiveID extends \SimpleSAML\Auth\Source
* Log-in using LiveID platform
*
* @param array &$state Information about the current authentication.
* @return void
*/
public function authenticate(&$state)
{
......@@ -85,8 +90,8 @@ class LiveID extends \SimpleSAML\Auth\Source
}
/**
* @param $state
*
* @param array &$state
* @return void
* @throws \Exception
*/
public function finalStep(&$state)
......
......@@ -39,6 +39,7 @@ if (array_key_exists('code', $_REQUEST)) {
assert(array_key_exists(\SimpleSAML\Module\authwindowslive\Auth\Source\LiveID::AUTHID, $state));
$sourceId = $state[\SimpleSAML\Module\authwindowslive\Auth\Source\LiveID::AUTHID];
/** @var \SimpleSAML\Module\authwindowslive\Auth\Source\LiveID|null $source */
$source = \SimpleSAML\Auth\Source::getById($sourceId);
if ($source === null) {
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