Integration with GuardianKey

Hi all,

We are trying to integrate OwnCloud with GuardianKey. However, we have doubts related to the best way to do this and the best point in the code for this integration.

GuardianKey is a solution to protect systems against authentication attacks. It uses Machine Learning and analyses the user’s behavior, threat intelligence and psychometrics (or behavioral biometrics). The protected system (in the concrete case, OwnCloud) must send an event via REST for the GuardianKey on each login attempt. More info at .

The best way to integrate would be on having a hook in the procedure that process the user credentials submission in OwnCloud (the script that receives the POST), something such as:

if(POST) {
boolean loginFailed = checkLogin();
GuardianKeyEvent event = createEventForGuardianKey(username,loginFailed);
boolean GuardianKeyValidation = checkGuardianKeyViaREST(event);
// Allow access
} else {
// Deny access

Where is the best place to create this integration? Is there a way to create a hook for this purpose? Should we create an extension?

Any help is welcome.

Thank you in advance.

Best regards,

Paulo Angelo

assuming you need to know failed login event you can use the failed login hook.

The brute force protection app uses this event -

You might find this an interesting code base to start …

Take care