Skip to content
Snippets Groups Projects

feat: user without tokens is redirected to new page, when mfa is enforced

Merged Jan Pavlíček requested to merge new into main
All threads resolved!
2 files
+ 8
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -136,7 +136,7 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
if (
$mfaEnforced && empty($state['Attributes'][AuthSwitcher::MFA_TOKENS]) &&
!in_array($this->entityID, $this->mfa_excluded_sps)
!in_array($this->entityID, $this->mfa_excluded_sps) && !empty($this->setup_mfa_redirect_url)
) {
$url = Module::getModuleURL(self::SETUP_MFA_URL);
$params = [];
Loading