diff --git a/lib/Controller/Id4meController.php b/lib/Controller/Id4meController.php index c39bf4b9..119db856 100644 --- a/lib/Controller/Id4meController.php +++ b/lib/Controller/Id4meController.php @@ -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()); } } diff --git a/lib/Controller/LoginController.php b/lib/Controller/LoginController.php index 290691c0..4b98ceb3 100644 --- a/lib/Controller/LoginController.php +++ b/lib/Controller/LoginController.php @@ -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());