bremersee-fac-data-mongodb

Enter description here

License

License

Categories

Categories

MongoDB Data Databases
GroupId

GroupId

org.bremersee
ArtifactId

ArtifactId

bremersee-fac-data-mongodb
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

bremersee-fac-data-mongodb
Enter description here
Project URL

Project URL

http://bremersee.github.io/fac/bremersee-fac-data-mongodb/
Project Organization

Project Organization

bremersee.org

Download bremersee-fac-data-mongodb

How to add to project

<!-- https://jarcasting.com/artifacts/org.bremersee/bremersee-fac-data-mongodb/ -->
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-fac-data-mongodb</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.bremersee/bremersee-fac-data-mongodb/
implementation 'org.bremersee:bremersee-fac-data-mongodb:1.1.3'
// https://jarcasting.com/artifacts/org.bremersee/bremersee-fac-data-mongodb/
implementation ("org.bremersee:bremersee-fac-data-mongodb:1.1.3")
'org.bremersee:bremersee-fac-data-mongodb:jar:1.1.3'
<dependency org="org.bremersee" name="bremersee-fac-data-mongodb" rev="1.1.3">
  <artifact name="bremersee-fac-data-mongodb" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.bremersee', module='bremersee-fac-data-mongodb', version='1.1.3')
)
libraryDependencies += "org.bremersee" % "bremersee-fac-data-mongodb" % "1.1.3"
[org.bremersee/bremersee-fac-data-mongodb "1.1.3"]

Dependencies

compile (3)

Group / Artifact Type Version
org.bremersee : bremersee-fac-api jar 1.1.3
org.springframework.data : spring-data-mongodb jar
org.projectlombok : lombok jar 1.16.10

test (5)

Group / Artifact Type Version
junit : junit jar
com.fasterxml.jackson.core : jackson-databind jar
org.apache.logging.log4j : log4j-slf4j-impl jar
org.apache.logging.log4j : log4j-api jar
org.apache.logging.log4j : log4j-core jar

Project Modules

There are no modules declared in this project.

Bremersee Failed Access Counter

This project contains a small protection against brute-force-attacks.

A failed access counter stores failed access entries of a resource for a remote host, that wants to access the resource. The resource may be, for example, the login page. When the login has failed, this may be stored in the failed access counter. When the counter of the failed access entry has reached a threshold the login can be blocked for a while.

The failed access counter needs a DAO (interface FailedAccessDao) to persist the failed access entries. Currently there are four DAO implementations available:

  • FailedAccessInMemoryDao: Persists the entries in memory.
  • FailedAccessJpaDao: Persists the entries in a SQL database.
  • FailedAccessLdapDao: Persists the entries in a LDAP server.
  • FailedAccessMongoDao: Persists the entries in a MongoDB.

The generated maven site is committed to the gh-pages branch and visible here. There you can find more information.

Release 1.1.3

Release 1.1.3 is available at Maven Central.

It consists of four modules:

API module
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-fac-api</artifactId>
    <version>1.1.3</version>
</dependency>
JPA module
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-fac-data-jpa</artifactId>
    <version>1.1.3</version>
</dependency>
LDAP module
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-fac-data-ldap</artifactId>
    <version>1.1.3</version>
</dependency>
MongoDB module
<dependency>
    <groupId>org.bremersee</groupId>
    <artifactId>bremersee-fac-data-mongodb</artifactId>
    <version>1.1.3</version>
</dependency>

Bremersee Failed Access Counter Example

This project contains for each DAO a small Spring Boot Application that demonstrates the usage and configuration of the Failed Access Counter library.

It's not available at Maven Central. You may check it out and build the application with

$ cd fac/bremersee-fac-example
$ mvn clean install

Than go to one of the modules and run the application (all examples use an in-memory storage):

$ cd bremersee-fac-example-ldap
$ mvn spring-boot:run

After the application is started you can open http://localhost:8080/entries.html in your favorite browser and have a look at the demonstration.

Versions

Version
1.1.3
1.1.2
1.1.1
1.1.0