Skip to content

Commit e1e9294

Browse files
committed
Fix Ldap/MFA
1 parent 8537f86 commit e1e9294

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

knowage-core/src/main/java/it/eng/spagobi/commons/services/LoginModule.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,13 @@ private void redirectToKnowageVue() throws IOException {
431431
}
432432

433433
private boolean checkCodeMfa(SourceBean request, String userId, MessageBuilder msgBuilder) throws Exception {
434+
435+
String securityServiceSupplier = SingletonConfig.getInstance().getConfigValue("SPAGOBI.SECURITY.USER-PROFILE-FACTORY-CLASS.className");
436+
// If securityServiceSupplier is Ldap compliant, skip MFA
437+
if (StringUtils.containsIgnoreCase(securityServiceSupplier, "LdapSecurityService")) {
438+
return true;
439+
}
440+
434441
// Load user data from the database
435442
ISbiUserDAO userDao = DAOFactory.getSbiUserDAO();
436443
SbiUser user = userDao.loadSbiUserByUserId(userId);

0 commit comments

Comments
 (0)