---
title: "Client Authentication Attempt Counter"
description: "An example event listener plugin keeping track of client authentication attempts."
url: "https://curity.io/resources/learn/client-authentication-attempt-counter/"
date: "2018-10-04"
area: "tutorials"
topic: "code-examples"
pagegroup: "plugins-event-listeners"
repository: "https://github.com/curityio/client-authentication-attempt-counter"
---

# Client Authentication Attempt Counter

An example of a event listener. The plug-in listens to events of successful and failed authentication attempts and counts consecutive unsuccessful login attempts. An info message is logged after 3 unsuccessful attempts, a warning message is logged after 10 such attempts.
