GUACAMOLE-990: Merge new guacamole-auth-ban extension to block brute-force auth attempts.

This commit is contained in:
James Muehlner
2022-08-22 15:57:33 -07:00
committed by GitHub
30 changed files with 1492 additions and 148 deletions

View File

@@ -198,12 +198,16 @@ angular.module('auth').factory('authenticationService', ['$injector',
['catch'](requestService.createErrorCallback(function authenticationFailed(error) {
// Request credentials if provided credentials were invalid
if (error.type === Error.Type.INVALID_CREDENTIALS)
if (error.type === Error.Type.INVALID_CREDENTIALS) {
$rootScope.$broadcast('guacInvalidCredentials', parameters, error);
clearAuthenticationResult();
}
// Request more credentials if provided credentials were not enough
else if (error.type === Error.Type.INSUFFICIENT_CREDENTIALS)
else if (error.type === Error.Type.INSUFFICIENT_CREDENTIALS) {
$rootScope.$broadcast('guacInsufficientCredentials', parameters, error);
clearAuthenticationResult();
}
// Abort rendering of page if an internal error occurs
else if (error.type === Error.Type.INTERNAL_ERROR)