Skip to content

Commit 81f9640

Browse files
authored
Update LoggedUser.php
1 parent f1758ed commit 81f9640

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/go5auth/lib/Auth/Source/LoggedUser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public function authenticate(&$state)
2222
if (!array_key_exists('access_token', $_REQUEST)
2323
&& !array_key_exists('HTTP_AUTHORIZATION', $_SERVER)
2424
) {
25-
throw new SimpleSAML_Error_Exception('go5auth | error: access_token is required');
25+
header('HTTP/1.1 401 Unauthorized');
26+
echo 'go5auth | error: access_token is required';
27+
exit;
2628
}
2729

2830
$accessToken = isset($_REQUEST['access_token'])

0 commit comments

Comments
 (0)