Skip to content

Commit

Permalink
Update APIs to support custom authentication management.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Nov 8, 2024
1 parent 36923ff commit 4738d61
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -786,15 +786,15 @@ private Authenticator buildAuthenticatorResponse(LocalAuthenticatorConfig config
authenticator.setDefinedBy(Authenticator.DefinedByEnum.SYSTEM);
} else {
authenticator.setType(Authenticator.TypeEnum.LOCAL);
if (AuthenticatorPropertyConstants.DefinedByType.SYSTEM == config.getDefinedByType()) {
if (AuthenticatorPropertyConstants.DefinedByType.USER == config.getDefinedByType()) {
authenticator.setDefinedBy(Authenticator.DefinedByEnum.USER);
resolveEndpointConfiguration(authenticator, config);
} else {
authenticator.setDefinedBy(Authenticator.DefinedByEnum.SYSTEM);
List<AuthenticatorProperty> authenticatorProperties =
Arrays.stream(config.getProperties()).map(propertyToExternal)
.collect(Collectors.toList());
authenticator.setProperties(authenticatorProperties);
} else {
authenticator.setDefinedBy(Authenticator.DefinedByEnum.USER);
resolveEndpointConfiguration(authenticator, config);
}
}
String[] tags = config.getTags();
Expand Down

0 comments on commit 4738d61

Please sign in to comment.