Skip to content

Commit

Permalink
Merge pull request #668 from nextcloud/bugfix/468
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Aug 29, 2023
2 parents 577075b + 13e29c7 commit 024ef1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Controller/Id4meController.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ public function code(string $state = '', string $code = '', string $scope = '')
$this->userSession->completeLogin($user, ['loginName' => $user->getUID(), 'password' => '']);
$this->userSession->createSessionToken($this->request, $user->getUID(), $user->getUID());

// Set last password confirm to the future as we don't have passwords to confirm against with SSO
$this->session->set('last-password-confirm', strtotime('+4 year', time()));

return new RedirectResponse(\OC_Util::getDefaultPageUrl());
}
}
3 changes: 3 additions & 0 deletions lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ public function code(string $state = '', string $code = '', string $scope = '',
$this->userSession->createSessionToken($this->request, $user->getUID(), $user->getUID());
$this->userSession->createRememberMeToken($user);

// Set last password confirm to the future as we don't have passwords to confirm against with SSO
$this->session->set('last-password-confirm', strtotime('+4 year', time()));

// for backchannel logout
try {
$authToken = $this->authTokenProvider->getToken($this->session->getId());
Expand Down

0 comments on commit 024ef1a

Please sign in to comment.