use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalAuthenticate.
public boolean executeExternalAuthenticate(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters, int step) {
try {
log.debug("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);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method executeExternalGetAlternativeAuthenticationMethod.
private String executeExternalGetAlternativeAuthenticationMethod(AuthenticationScriptUsageType usageType, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'getAlternativeAuthenticationMethod' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getAlternativeAuthenticationMethod(usageType, configurationAttributes);
} 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 executeExternalIsValidAuthenticationMethod.
private boolean executeExternalIsValidAuthenticationMethod(AuthenticationScriptUsageType usageType, CustomScriptConfiguration customScriptConfiguration) {
try {
log.debug("Executing python 'isValidAuthenticationMethod' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.isValidAuthenticationMethod(usageType, configurationAttributes);
} 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 executeExternalPrepareForStep.
public boolean executeExternalPrepareForStep(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters, int step) {
try {
log.debug("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);
}
return false;
}
use of org.xdi.model.SimpleCustomProperty in project oxAuth by GluuFederation.
the class ExternalAuthenticationService method getNextStep.
public int getNextStep(CustomScriptConfiguration customScriptConfiguration, Map<String, String[]> requestParameters, int step) {
try {
log.debug("Executing python 'getNextStep' authenticator method");
PersonAuthenticationType externalAuthenticator = (PersonAuthenticationType) customScriptConfiguration.getExternalType();
Map<String, SimpleCustomProperty> configurationAttributes = customScriptConfiguration.getConfigurationAttributes();
return externalAuthenticator.getNextStep(configurationAttributes, requestParameters, step);
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
return -1;
}
Aggregations