An open API service indexing awesome lists of open source software.

https://github.com/athiththan11/defective-password-validator

Defective password validation using WSO2 Event Handlers extension
https://github.com/athiththan11/defective-password-validator

event-handlers java-watchservice password-validator pre-update-credentials wso2 wso2-event-handler

Last synced: 3 months ago
JSON representation

Defective password validation using WSO2 Event Handlers extension

Awesome Lists containing this project

README

          

# Defective Password Validator

A custom event handler implementation to validate password against a set of defective passwords stored in a text file.

## Prepare

### Defective Passwords Text File

Create a text file named `passwords.txt` and add the following lines. The following values will be used as a list of defective passwords to validate ...

* admin
* password
* helloWorld

Create a directory named `defective` inside `/repository/deployment/server/` path and place the above created `passwords.txt`.

### WSO2 Identity Server

Open the `/repository/conf/identity/identity-event.properties` file and add the following lines at the bottom of the properties file to subscribe for password-update events.

> Please update the digit value according to your `identity-event.properties` file (last used value + 1).

> The given `module.name` value is the same value which configured in the `getName()` method in `DefectivePasswordValidatorEventHandler` class.

```properties
module.name.13=defectivePasswordValidator
defectivePasswordValidator.subscription.1=PRE_UPDATE_CREDENTIAL
defectivePasswordValidator.subscription.2=PRE_UPDATE_CREDENTIAL_BY_ADMIN
```

## Build

Build the project by running ...

```shell
mvn clean package
```

## Deploy

After a successful build, copy the `defective-password-validator-1.0.0.jar` artifact from the `target` folder and paste it inside `/repository/components/dropins` folder.

## Run

Start your WSO2 Identity Server by executing the command from your `/bin` folder

```shell
sh wso2server.sh
```