Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Production and Tests should use the appropriate PasswordEncoder
- Production should use BCryptPasswordEncoder - Tests should use FakePasswordEncoder [#164967385]
- Loading branch information
1 parent
dabe4af
commit cfeaa5b
Showing
33 changed files
with
157 additions
and
324 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...rc/main/java/org/cloudfoundry/identity/uaa/oauth/event/TokenRevocationEventPublisher.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
server/src/main/java/org/cloudfoundry/identity/uaa/util/PasswordEncoderFactory.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
server/src/main/java/org/cloudfoundry/identity/uaa/util/beans/PasswordEncoderConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
package org.cloudfoundry.identity.uaa.util.beans; | |||
|
|||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import org.springframework.context.annotation.Bean; | |||
import org.springframework.context.annotation.Configuration; | |||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; | |||
import org.springframework.security.crypto.password.PasswordEncoder; | |||
|
|||
@Configuration | |||
public class PasswordEncoderConfig { | |||
|
|||
private static Logger logger = LoggerFactory.getLogger(PasswordEncoderConfig.class); | |||
|
|||
@Bean | |||
public PasswordEncoder nonCachingPasswordEncoder() { | |||
logger.info("Created instance of BCryptPasswordEncoder"); | |||
return new BCryptPasswordEncoder(); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
...src/main/java/org/cloudfoundry/identity/uaa/zone/event/ServiceProviderEventPublisher.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
server/src/test/java/org/cloudfoundry/identity/uaa/FakePasswordEncoderConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.