Class LegacyAwareDaoAuthenticationProviderTest
java.lang.Object
ubic.gemma.core.security.authentication.LegacyAwareDaoAuthenticationProviderTest
Verifies
LegacyAwareDaoAuthenticationProvider can authenticate legacy
SHA-1+username-salt hashes without any ThreadLocal state, and triggers the Spring Security
6 password-upgrade hook (UserDetailsPasswordService) on success.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LegacyAwareDaoAuthenticationProviderTest
public LegacyAwareDaoAuthenticationProviderTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
legacyHash_successfulLogin_triggersBcryptUpgrade
@Test public void legacyHash_successfulLogin_triggersBcryptUpgrade() -
fixedSaltHash_authenticatesViaGooblyfoobly
@Test public void fixedSaltHash_authenticatesViaGooblyfoobly() -
fixedSaltHash_wrongPassword_rejected
@Test public void fixedSaltHash_wrongPassword_rejected() -
legacyHash_wrongPassword_rejected
@Test public void legacyHash_wrongPassword_rejected() -
bcryptHash_stillAuthenticatesViaPasswordEncoder
@Test public void bcryptHash_stillAuthenticatesViaPasswordEncoder()
-