Search in sources :

Example 1 with ApplicationSessionType

use of org.xdi.model.custom.script.type.session.ApplicationSessionType in project oxAuth by GluuFederation.

the class ExternalApplicationSessionService method executeExternalEndSessionMethod.

public boolean executeExternalEndSessionMethod(CustomScriptConfiguration customScriptConfiguration, HttpServletRequest httpRequest, SessionState sessionState) {
    try {
        log.debug("Executing python 'endSession' method");
        ApplicationSessionType applicationSessionType = (ApplicationSessionType) customScriptConfiguration.getExternalType();
        Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
        return applicationSessionType.endSession(httpRequest, sessionState, configurationAttributes);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
    }
    return false;
}
Also used : ApplicationSessionType(org.xdi.model.custom.script.type.session.ApplicationSessionType) SimpleCustomProperty(org.xdi.model.SimpleCustomProperty)

Aggregations

SimpleCustomProperty (org.xdi.model.SimpleCustomProperty)1 ApplicationSessionType (org.xdi.model.custom.script.type.session.ApplicationSessionType)1