Package com.irurueta.authserver.authorization.api.web.password
package com.irurueta.authserver.authorization.api.web.password
Web adapter of the password-based sign-in: the Spring Security user details service over the use case, the
password encoder and the authentication provider, which checks the account status only after the password.
-
ClassesClassDescriptionRegisters the
CompromisedPasswordCheckport.Declares the authentication provider of the password-based sign-in, instead of the one Spring Security builds from theUserDetailsServicebean, to close a user enumeration.Registers the password encoder of the password-based sign-in and of the client secrets: new values are encoded with Argon2, while bcrypt and PBKDF2 hashes stay verifiable (and are upgraded on the next successful sign-in).Contributes the username and password form to the login page, as every authentication method does through theLoginMethodFragmentextension point.Adapter of theCompromisedPasswordCheckport over Spring Security'sCompromisedPasswordChecker(in production, the Have I Been Pwned range API, which only receives a hash prefix of the password).Adapter of thePasswordHasherport over Spring Security'sPasswordEncoder.Spring SecurityUserDetailsServiceadapter over theFindUserAccountUseCaseuse case: it maps the domainUserAccountonto Spring Security'sUserDetailsthrough theUserDetailsMapper.Maps the domainUserAccountonto Spring Security'sUserDetails.