{"id":18970343,"url":"https://github.com/athiththan11/countersign-validator","last_synced_at":"2026-04-06T14:30:19.359Z","repository":{"id":122657337,"uuid":"189553848","full_name":"athiththan11/Countersign-Validator","owner":"athiththan11","description":"A custom password validator implementation for WSO2 Identity Server using WSO2 Custom Password Validator extension","archived":false,"fork":false,"pushed_at":"2019-07-05T18:27:13.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T07:27:17.765Z","etag":null,"topics":["extension","password-validator","wso2","wso2-extensions","wso2-identity-server","wso2-password-validators"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athiththan11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-31T08:02:35.000Z","updated_at":"2021-05-22T18:19:02.000Z","dependencies_parsed_at":"2024-06-19T03:15:31.643Z","dependency_job_id":null,"html_url":"https://github.com/athiththan11/Countersign-Validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athiththan11%2FCountersign-Validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athiththan11%2FCountersign-Validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athiththan11%2FCountersign-Validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athiththan11%2FCountersign-Validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athiththan11","download_url":"https://codeload.github.com/athiththan11/Countersign-Validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970664,"owners_count":19727009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","password-validator","wso2","wso2-extensions","wso2-identity-server","wso2-password-validators"],"created_at":"2024-11-08T14:56:42.960Z","updated_at":"2026-04-06T14:30:19.319Z","avatar_url":"https://github.com/athiththan11.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Countersign Validator\n\nA custom password validator (custom password policy extension) implementation to validate password against a set of commonly used dictionary values and username.\n\nSimple put, the custom password validator (countersign validator) throws an error if the password is same as the useranem, and if the password contains any of the following strings ...\n\n* admin\n* password\n* root\n* 123\n\n## Build\n\nBuild the project by running ...\n\n```shell\nmvn clean package\n```\n\n## Deploy\n\nAfter a successful build, copy the `countersign-validator-1.0.0.jar` artifact from the `target` folder and paste it inside `\u003cIS HOME\u003e/repository/components/dropins` folder. And specify the deployed password validator as an extension inside the `\u003cIS HOME\u003e/repository/conf/identity/identity-mgt.properties` file.\n\nSimply add the following lines at the end of the `identity-mgt.properties` file to use the custom password validator implementation\n\n```properties\nPassword.policy.extensions.1=com.athiththan.sample.CountersignValidator\nPassword.policy.extensions.1.faultMsg=\"Validation failed :: according to Countersign Validator\"\n```\n\nNavigate to `\u003cIS HOME\u003e/repository/conf/identity/identity.xml` and enable the following `EventListener` to `enable=true`\n\n```xml\n\u003cEventListener type=\"org.wso2.carbon.user.core.listener.UserOperationEventListener\"\n                       name=\"org.wso2.carbon.identity.mgt.IdentityMgtEventListener\"\n                       orderId=\"50\" enable=\"true\"/\u003e\n```\n\n## Run\n\nStart your WSO2 Identity Server by executing the command from your `\u003cIS HOME\u003e/bin` folder\n\n```shell\nsh wso2server.sh\n```\n\nor\n\n```shell\nwso2is-5.5.0\n```\n\n## Test \u0026 Results\n\nNavigate to the [`Carbon Management console`](https://localhost:9443/carbon) and login as admin using `admin` for both the username and password.\n\nNavigate to [`Main -\u003e Identity -\u003e Users and Roles -\u003e Add -\u003e Add New User`](https://localhost:9443/carbon/user/add-step1.jsp)\n\n![Add User Screen WSO2 Identity Server](https://docs.wso2.com/download/attachments/60494066/Add%20New%20User.png?version=1\u0026modificationDate=1508308523000\u0026api=v2)\n\nand provide\n\n1. your favourite string as both username and password\n2. enter any username and enter a password containing any above mentioned strings\n\nclick finish and see the prompted error messages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathiththan11%2Fcountersign-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathiththan11%2Fcountersign-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathiththan11%2Fcountersign-validator/lists"}