We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1758ed commit 81f9640Copy full SHA for 81f9640
1 file changed
modules/go5auth/lib/Auth/Source/LoggedUser.php
@@ -22,7 +22,9 @@ public function authenticate(&$state)
22
if (!array_key_exists('access_token', $_REQUEST)
23
&& !array_key_exists('HTTP_AUTHORIZATION', $_SERVER)
24
) {
25
- throw new SimpleSAML_Error_Exception('go5auth | error: access_token is required');
+ header('HTTP/1.1 401 Unauthorized');
26
+ echo 'go5auth | error: access_token is required';
27
+ exit;
28
}
29
30
$accessToken = isset($_REQUEST['access_token'])
0 commit comments