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
- Host: GitHub
- URL: https://github.com/athiththan11/defective-password-validator
- Owner: athiththan11
- Created: 2019-07-05T19:07:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T10:59:16.000Z (almost 7 years ago)
- Last Synced: 2025-01-01T07:27:07.737Z (over 1 year ago)
- Topics: event-handlers, java-watchservice, password-validator, pre-update-credentials, wso2, wso2-event-handler
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```