use of org.gluu.model.custom.script.type.auth.PersonAuthenticationType in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalPrepareForStep.
public boolean executeExternalPrepareForStep(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters, int step) {
try {
log.trace("Executing python 'prepareForStep' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.prepareForStep(configurationAttributes, requestParameters, step);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
saveScriptError(customScriptConfiguration.getCustomScript(), ex);
}
return false;
}
use of org.gluu.model.custom.script.type.auth.PersonAuthenticationType in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalAuthenticate.
public boolean executeExternalAuthenticate(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters, int step) {
try {
log.trace("Executing python 'authenticate' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.authenticate(configurationAttributes, requestParameters, step);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
saveScriptError(customScriptConfiguration.getCustomScript(), ex);
}
return false;
}
Aggregations