use of org.xdi.model.custom.script.type.client.ClientRegistrationType in project oxAuth by GluuFederation.
the class ExternalDynamicClientRegistrationService method executeExternalUpdateClientMethod.
public boolean executeExternalUpdateClientMethod(CustomScriptConfiguration customScriptConfiguration, RegisterRequest registerRequest, Client client) {
try {
log.debug("Executing python 'updateClient' method");
ClientRegistrationType externalClientRegistrationType = (ClientRegistrationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalClientRegistrationType.updateClient(registerRequest, client, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations