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 12, 2024
1 parent cfc2832 commit 553c635
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,7 @@ private MetaFederatedAuthenticatorListItem createMetaFederatedAuthenticatorListI
String authenticatorId = base64URLEncode(authenticatorConfig.getName());
metaFederatedAuthenticator.setName(authenticatorConfig.getName());
metaFederatedAuthenticator.setAuthenticatorId(authenticatorId);
metaFederatedAuthenticator.setDefinedBy(MetaFederatedAuthenticatorListItem.DefinedByEnum.SYSTEM);
FederatedAuthenticatorConfig federatedAuthenticatorConfig = ApplicationAuthenticatorService.getInstance()
.getFederatedAuthenticatorByName(authenticatorConfig.getName());
if (federatedAuthenticatorConfig != null) {
Expand Down Expand Up @@ -1727,6 +1728,7 @@ private MetaFederatedAuthenticator createMetaFederatedAuthenticator(FederatedAut
metaFederatedAuthenticator.setTags(Arrays.asList(tags));
}
}
metaFederatedAuthenticator.setDefinedBy(MetaFederatedAuthenticator.DefinedByEnum.SYSTEM);
Property[] properties = authenticatorConfig.getProperties();
List<MetaProperty> metaProperties = Arrays.stream(properties).map(propertyToExternalMeta).collect(Collectors
.toList());
Expand Down

0 comments on commit 553c635

Please sign in to comment.