We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3761d3a commit 51707b0Copy full SHA for 51707b0
2 files changed
lib/Client.php
@@ -23,7 +23,7 @@ class Client
23
/**
24
* The CDC server we send requests to.
25
*
26
- * @var Server|null
+ * @var Server
27
*/
28
private $server;
29
www/resume.php
@@ -15,6 +15,10 @@
15
if (!isset($response['id'])) {
16
throw new \SimpleSAML\Error\BadRequest('CDCResponse without id.');
17
}
18
-$state = \SimpleSAML\Auth\State::loadState($response['id'], 'cdc:resume');
19
20
-\SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
+$state = \SimpleSAML\Auth\State::loadState($response['id'], 'cdc:resume');
+if (!is_null($state)) {
21
+ \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
22
+} else {
+ throw new \SimpleSAML\Error\NoState();
+}
0 commit comments