Skip to content

A utility that will allow a single annotation to enable login attempt logging to a JDBC database

License

Notifications You must be signed in to change notification settings

ajthom90/spring-security-login-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Spring Security Login Attempt Logger

Release

A utility that will allow a single annotation to enable login attempt logging to a database via JDBC.

To use, add the following repository to your Maven configuration:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>

And add the following dependency:

<dependency>
  <groupId>com.andrewthom</groupId>
  <artifactId>spring-security-login-logger</artifactId>
  <version>0.1</version> <!-- Replace with whatever the current version is -->
</dependency>

The version number can be any release as defined on GitHub. To always keep up to date with the latest branch, set the version to master-SNAPSHOT.

Prerequisites

This utility requires Spring Security, and also the Spring JDBC JAR on the build path. At this time, the utility will only log to a database via JDBC, but in the future it may support other datastores. If you have an idea for another datastore, please submit an issue (or, even better, download the source code, add support, and submit a pull request!!).

Database Table Layout

The database table layout is fairly simple (four columns, using a GUID as the primary key). Sample DDL for MySQL can be found in src/main/java/com/github/ajthom/springsecurityloginlogger/service.

About

A utility that will allow a single annotation to enable login attempt logging to a JDBC database

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages