Search in sources :

Example 1 with ClientRegistrationType

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;
}
Also used : SimpleCustomProperty(org.xdi.model.SimpleCustomProperty) ClientRegistrationType(org.xdi.model.custom.script.type.client.ClientRegistrationType)

Aggregations

SimpleCustomProperty (org.xdi.model.SimpleCustomProperty)1 ClientRegistrationType (org.xdi.model.custom.script.type.client.ClientRegistrationType)1