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;
}
Aggregations