Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Nov 19, 2024
1 parent 1e7779f commit b964638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,8 @@ public IdentityProvider addIdPWithResourceId(IdentityProvider identityProvider,
throws IdentityProviderManagementException {

markConfidentialPropertiesUsingMetadata(identityProvider);
validateFederatedAuthenticatorConfigName(identityProvider.getFederatedAuthenticatorConfigs(), tenantDomain);
validateAddIdPInputValues(identityProvider.getIdentityProviderName(), tenantDomain);
validateFederatedAuthenticatorConfigName(identityProvider.getFederatedAuthenticatorConfigs(), tenantDomain);
validateOutboundProvisioningRoles(identityProvider, tenantDomain);

// Invoking the pre listeners.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,14 @@ public FederatedAuthenticatorConfig resolveEndpointConfig(FederatedAuthenticator
private UserDefinedAuthenticatorEndpointConfig buildUserDefinedAuthenticatorEndpointConfig(
EndpointConfig endpointConfig) {

UserDefinedAuthenticatorEndpointConfig.UserDefinedAuthenticatorEndpointConfigBuilder endpointConfigBuilder =
new UserDefinedAuthenticatorEndpointConfig.UserDefinedAuthenticatorEndpointConfigBuilder();
endpointConfigBuilder.uri(endpointConfig.getUri());
endpointConfigBuilder.authenticationType(endpointConfig.getAuthentication().getType().getName());
Map<String, String> propMap = new HashMap<>();
endpointConfig.getAuthentication().getProperties()
.forEach(prop -> propMap.put(prop.getName(), prop.getValue()));
endpointConfigBuilder.authenticationProperties(propMap);
return endpointConfigBuilder.build();
return new UserDefinedAuthenticatorEndpointConfig.UserDefinedAuthenticatorEndpointConfigBuilder()
.uri(endpointConfig.getUri())
.authenticationType(endpointConfig.getAuthentication().getType().getName())
.authenticationProperties(propMap)
.build();
}

/**
Expand Down

0 comments on commit b964638

Please sign in to comment.