Skip to content

Commit

Permalink
Merge pull request #553 from jdaugherty/6.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty authored Nov 6, 2024
2 parents 0eee695 + 0daa39e commit f9ade38
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import grails.plugin.springsecurity.rest.token.rendering.DefaultAccessTokenJsonR
import grails.plugin.springsecurity.rest.token.storage.jwt.JwtTokenStorageService
import grails.plugins.Plugin
import groovy.util.logging.Slf4j
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import org.springframework.security.crypto.password.DelegatingPasswordEncoder
import org.springframework.security.crypto.password.LdapShaPasswordEncoder
Expand Down Expand Up @@ -338,6 +339,7 @@ class SpringSecurityRestGrailsPlugin extends Plugin {
final String ENCODING_ID_NOOP = "noop"
final String ENCODING_ID_PBKDF2 = "pbkdf2"
final String ENCODING_ID_SCRYPT = "scrypt"
final String ENCODING_ID_ARGON2 = "argon2"
final String ENCODING_ID_SHA1 = "SHA-1"
final String ENCODING_IDSHA256 = "SHA-256"

Expand All @@ -359,8 +361,9 @@ class SpringSecurityRestGrailsPlugin extends Plugin {
(ENCODING_ID_MD4): new Md4PasswordEncoder(),
(ENCODING_ID_MD5): messageDigestPasswordEncoderMD5,
(ENCODING_ID_NOOP): NoOpPasswordEncoder.getInstance(),
(ENCODING_ID_PBKDF2): new Pbkdf2PasswordEncoder(),
(ENCODING_ID_SCRYPT): new SCryptPasswordEncoder(),
(ENCODING_ID_PBKDF2): Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_8(),
(ENCODING_ID_SCRYPT): SCryptPasswordEncoder.defaultsForSpringSecurity_v5_8(),
(ENCODING_ID_ARGON2): Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8(),
(ENCODING_ID_SHA1): messsageDigestPasswordEncoderSHA1,
(ENCODING_IDSHA256): messsageDigestPasswordEncoderSHA256,
"sha256": new StandardPasswordEncoder()]
Expand Down

0 comments on commit f9ade38

Please sign in to comment.