use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalLogout.
public boolean executeExternalLogout(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'logout' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.logout(configurationAttributes, requestParameters);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalGetExtraParametersForStep.
public List<String> executeExternalGetExtraParametersForStep(CustomScriptConfiguration customScriptConfiguration, int step) {
try {
log.debug("Executing python 'getExtraParametersForStep' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getExtraParametersForStep(configurationAttributes, step);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return null;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method getLogoutExternalUrl.
public String getLogoutExternalUrl(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters) {
try {
log.debug("Executing python 'getLogouExternalUrl' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getLogoutExternalUrl(configurationAttributes, requestParameters);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return null;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalGetCountAuthenticationSteps.
public int executeExternalGetCountAuthenticationSteps(CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'getCountAuthenticationSteps' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getCountAuthenticationSteps(configurationAttributes);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return -1;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalGetPageForStep.
public String executeExternalGetPageForStep(CustomScriptConfiguration customScriptConfiguration, int step) {
try {
log.debug("Executing python 'getPageForStep' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getPageForStep(configurationAttributes, step);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return null;
}
Aggregations