mirror of
https://github.com/friendica/friendica
synced 2025-05-21 11:04:15 +02:00
Check for REDIRECT_REMOTE_USER as well
This commit is contained in:
parent
5e22704f7e
commit
6b3476409a
3 changed files with 14 additions and 3 deletions
|
@ -83,6 +83,11 @@ class OAuth
|
|||
{
|
||||
$authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';
|
||||
|
||||
if (empty($authorization)) {
|
||||
// workaround for HTTP-auth in CGI mode
|
||||
$authorization = $_SERVER['REDIRECT_REMOTE_USER'] ?? '';
|
||||
}
|
||||
|
||||
if (substr($authorization, 0, 7) != 'Bearer ') {
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue