Skip to content

Commit

Permalink
Merge pull request #46087 from nextcloud/backport/46075/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
  • Loading branch information
blizzz authored Jun 25, 2024
2 parents 1da03bb + 5b7c4cc commit 5be77d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/legacy/OC_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
if (empty($password)) {
$tokenProvider = \OC::$server->get(IProvider::class);
$token = $tokenProvider->getToken($userSession->getSession()->getId());
$token->setScope(['password-unconfirmable' => true]);
$token->setScope([
'password-unconfirmable' => true,
'filesystem' => true,
]);
$tokenProvider->updateToken($token);
}

Expand Down

0 comments on commit 5be77d3

Please sign in to comment.