Skip to content

Commit 0d94a04

Browse files
authored
Merge pull request #46088 from nextcloud/backport/46075/stable28
[stable28] fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
2 parents 93dcf8c + f016e7e commit 0d94a04

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/private/legacy/OC_User.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
200200
if (empty($password)) {
201201
$tokenProvider = \OC::$server->get(IProvider::class);
202202
$token = $tokenProvider->getToken($userSession->getSession()->getId());
203-
$token->setScope(['password-unconfirmable' => true]);
203+
$token->setScope([
204+
'password-unconfirmable' => true,
205+
'filesystem' => true,
206+
]);
204207
$tokenProvider->updateToken($token);
205208
}
206209

0 commit comments

Comments
 (0)