Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue in returning multiple authenticators. #822

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ public List<Authenticator> getAuthenticators(String filter, Integer limit, Integ

LocalAuthenticatorConfig[] localAuthenticatorConfigs = applicationManagementService
.getAllLocalAuthenticators(ContextLoader.getTenantDomainFromContext());
List<UserDefinedLocalAuthenticatorConfig> userDefinedLocalAuthConfigs = applicationAuthenticatorService
.getAllUserDefinedLocalAuthenticators(ContextLoader.getTenantDomainFromContext());
if (CollectionUtils.isNotEmpty(userDefinedLocalAuthConfigs)) {
localAuthenticatorConfigs = (LocalAuthenticatorConfig[]) ArrayUtils.addAll(localAuthenticatorConfigs,
userDefinedLocalAuthConfigs.toArray(new LocalAuthenticatorConfig[0]));
}
int localAuthenticatorsCount = localAuthenticatorConfigs.length;
RequestPathAuthenticatorConfig[] requestPathAuthenticatorConfigs = new RequestPathAuthenticatorConfig[0];

Expand Down Expand Up @@ -172,8 +166,6 @@ public List<Authenticator> getAuthenticators(String filter, Integer limit, Integ
null);
} catch (IdentityProviderManagementException e) {
throw handleIdPException(e, Constants.ErrorMessage.ERROR_CODE_ERROR_LISTING_IDPS, null);
} catch (AuthenticatorMgtException e) {
throw handleAuthenticatorException(e);
}
}

Expand Down
Loading