Skip to content

Include Compromised Password Information in UserDetails #15745

Open
@marcusdacoregio

Description

@marcusdacoregio

Currently, there is no easy way to flag a UserDetails object that has its password compromised. There is no first-class property in Spring Security to identify that.

This will entail:

  • Update UserDetails with a default method that shows if the password is compromised
  • Update User and it's builder to have the property
  • Update DaoAuthenticationProvider to ensure to set the property

See this sample https://github.com/spring-projects/spring-security-samples/tree/main/servlet/spring-boot/java/authentication/username-password/compromised-password-checker

Metadata

Metadata

Assignees

Labels

in: coreAn issue in spring-security-coretype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions