use of org.xdi.model.custom.script.type.scope.DynamicScopeType in project oxAuth by GluuFederation.
the class ExternalDynamicScopeService method executeExternalUpdateMethod.
public boolean executeExternalUpdateMethod(CustomScriptConfiguration customScriptConfiguration, DynamicScopeExternalContext dynamicScopeContext) {
try {
log.debug("Executing python 'update' method");
DynamicScopeType dynamicScopeType = (DynamicScopeType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return dynamicScopeType.update(dynamicScopeContext, configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
Aggregations