Skip to content
Snippets Groups Projects

feat: user without sfa with mfa must perform mfa, without either will be redirected to new page

Merged Jan Pavlíček requested to merge entropy into main
Files
2
@@ -72,7 +72,7 @@ class AuthnContextHelper
$supportedRequestedContexts = array_values(array_intersect($requestedContexts, $this->supported_contexts));
if (!$sfaEntropy && in_array(AuthSwitcher::REFEDS_SFA, $supportedRequestedContexts)) {
Logger::info(
'authswitcher: SFA password entropy level isn\'t satisfied.'
'authswitcher: SFA password entropy level is not satisfied.'
);
$supportedRequestedContexts = array_diff($supportedRequestedContexts, AuthSwitcher::PASSWORD_CONTEXTS);
if (empty($supportedRequestedContexts) && !$this->MFAin($usersCapabilities)) {
Loading