Skip to content

Commit 0c45dce

Browse files
committed
Fix Ldap/MFA
1 parent fd5259a commit 0c45dce

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
@@ -455,6 +455,13 @@ private void redirectToKnowageVue() throws IOException {
455455
}
456456

457457
private boolean checkCodeMfa(SourceBean request, String userId, MessageBuilder msgBuilder) throws Exception {
458+
459+
String securityServiceSupplier = SingletonConfig.getInstance().getConfigValue("SPAGOBI.SECURITY.USER-PROFILE-FACTORY-CLASS.className");
460+
// If securityServiceSupplier is Ldap compliant, skip MFA
461+
if (StringUtils.containsIgnoreCase(securityServiceSupplier, "LdapSecurityService")) {
462+
return true;
463+
}
464+
458465
// Load user data from the database
459466
ISbiUserDAO userDao = DAOFactory.getSbiUserDAO();
460467
SbiUser user = userDao.loadSbiUserByUserId(userId);

0 commit comments

Comments
 (0)