Skip to content

Commit

Permalink
Merge pull request #46071 from nextcloud/fix/46070/scope-error
Browse files Browse the repository at this point in the history
fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATION
  • Loading branch information
blizzz authored Jun 24, 2024
2 parents d086f3a + 895ed63 commit 879eaa7
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 @@ -172,7 +172,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([IToken::SCOPE_SKIP_PASSWORD_VALIDATION => true]);
$token->setScope([
IToken::SCOPE_SKIP_PASSWORD_VALIDATION => true,
IToken::SCOPE_FILESYSTEM => true,
]);
$tokenProvider->updateToken($token);
}

Expand Down

0 comments on commit 879eaa7

Please sign in to comment.