use of org.xdi.model.SimpleCustomProperty in project oxTrust by GluuFederation.
the class ExternalUserRegistrationService method executeExternalPreRegistrationMethod.
public boolean executeExternalPreRegistrationMethod(CustomScriptConfiguration customScriptConfiguration, GluuCustomPerson user, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'preRegistration' method");
UserRegistrationType externalType = (UserRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalType.preRegistration(user, requestParameters, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations