Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @Password Validator #4

Closed
1 of 2 tasks
jossmoff opened this issue Jun 29, 2023 · 0 comments · Fixed by #7
Closed
1 of 2 tasks

Add @Password Validator #4

jossmoff opened this issue Jun 29, 2023 · 0 comments · Fixed by #7
Labels
✨ enhancement New feature or request 🧵string Relates to string based bean validation
Milestone

Comments

@jossmoff
Copy link
Owner

jossmoff commented Jun 29, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Description

It would be great to have a password validator annotation which checks:

  • Bounds on length
  • If it contains digits
  • If it contains lower case chars
  • If it contains uppercase chars
  • If it contains special chars

And you can toggle each of these on or off

Solution

Want the @Password annotation.

Password length should be between 8 and 64 as per OWASP.
Password special characters as per OWASP
Password requirements that Google enforce would be a good place to focus the format.

These can be opted out something like

@Password(minLength=4, specialChars=false, lowerCase=false, numbers=false)

Would imply our password must be between 4 and 64 digits and not contain special, lowercase or numeric characters.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@jossmoff jossmoff added ✨ enhancement New feature or request 🧵string Relates to string based bean validation labels Jun 29, 2023
@jossmoff jossmoff added this to the Version 1.0.0 milestone Jul 1, 2023
@jossmoff jossmoff changed the title Add @Password Validator Add @Password Validator Jul 1, 2023
@jossmoff jossmoff linked a pull request Jul 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🧵string Relates to string based bean validation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant