wicket-pwnedpasswords-validator

A validator for Apache Wicket that checks if a given password has been pwned.

License

License

Categories

Categories

Wicket User Interface Web Frameworks
GroupId

GroupId

de.martinspielmann.wicket
ArtifactId

ArtifactId

wicket-pwnedpasswords-validator
Last Version

Last Version

4.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

wicket-pwnedpasswords-validator
A validator for Apache Wicket that checks if a given password has been pwned.
Project URL

Project URL

https://github.com/pingunaut/wicket-pwnedpasswords-validator
Source Code Management

Source Code Management

https://github.com/pingunaut/wicket-pwnedpasswords-validator.git

Download wicket-pwnedpasswords-validator

How to add to project

<!-- https://jarcasting.com/artifacts/de.martinspielmann.wicket/wicket-pwnedpasswords-validator/ -->
<dependency>
    <groupId>de.martinspielmann.wicket</groupId>
    <artifactId>wicket-pwnedpasswords-validator</artifactId>
    <version>4.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.martinspielmann.wicket/wicket-pwnedpasswords-validator/
implementation 'de.martinspielmann.wicket:wicket-pwnedpasswords-validator:4.1.0'
// https://jarcasting.com/artifacts/de.martinspielmann.wicket/wicket-pwnedpasswords-validator/
implementation ("de.martinspielmann.wicket:wicket-pwnedpasswords-validator:4.1.0")
'de.martinspielmann.wicket:wicket-pwnedpasswords-validator:jar:4.1.0'
<dependency org="de.martinspielmann.wicket" name="wicket-pwnedpasswords-validator" rev="4.1.0">
  <artifact name="wicket-pwnedpasswords-validator" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.martinspielmann.wicket', module='wicket-pwnedpasswords-validator', version='4.1.0')
)
libraryDependencies += "de.martinspielmann.wicket" % "wicket-pwnedpasswords-validator" % "4.1.0"
[de.martinspielmann.wicket/wicket-pwnedpasswords-validator "4.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.wicket : wicket-core jar 9.0.0-M5
de.martinspielmann.haveibeenpwned4j : haveibeenpwned4j jar 1.1.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.13
org.eclipse.jetty.aggregate : jetty-all jar 9.2.24.v20180105

Project Modules

There are no modules declared in this project.

wicket-pwnedpasswords-validator

A validator for Apache Wicket that checks if a given password has been pwned. The validator uses the free API of https://haveibeenpwned.com/ by @troyhunt to validate that the password has not been previously exposed in data breaches.

Build Status Coverage

Usage

  1. Include maven dependency in your pom.xml
<dependency>
  <groupId>de.martinspielmann.wicket</groupId>
  <artifactId>wicket-pwnedpasswords-validator</artifactId>
  <version>4.0.1</version>
</dependency>
  1. Add PwnedPasswordsValidator to your PasswordTextField
// just your every day registration form...
Form form = new Form("form");
add(form);
f.add(new FeedbackPanel("feedback"));
PasswordTextField password = new PasswordTextField("password", new Model<>(""));
form.add(password);

// and here it is:
password.add(new PwnedPasswordsValidator("YOUR-HIBP-API-KEY"));

Prerequisites

  • Maven (or download jar from Releases)
  • Wicket 6, 7, 8

Development

git clone https://github.com/pingunaut/wicket-pwnedpasswords-validator.git
cd wicket-pwnedpasswords-validator
mvn test

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Martin Spielmann - Initial work - pingunaut

See also the list of contributors who participated in this project.

License

This project is licensed under The Apache Software License, Version 2.0 - see the LICENSE.md file for details

Versions

Version
4.1.0
4.0.0
3.1.0
3.0.0
2.0.0
1.0.2
1.0.0