Skip to content

Commit

Permalink
Add config flag
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Feb 3, 2022
1 parent aab8c2a commit 0471bbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig) {
}

public static function initSession() {
if (self::$server->getRequest()->getHeader('Authorization') !== '') {
$basicAuthCookieUsage = self::$server->getConfig()->getSystemValueBool('auth.basic.cookies', true);

if ($basicAuthCookieUsage === false && self::$server->getRequest()->getHeader('Authorization') !== '') {
// Do not initialize the session if a request is authenticated directly
return;
}
Expand Down

0 comments on commit 0471bbd

Please sign in to comment.