Skip to content

Commit

Permalink
Merge pull request #41 from OnixByte/release/1.6.4
Browse files Browse the repository at this point in the history
1.6.4
  • Loading branch information
zihluwang authored Sep 15, 2024
2 parents 5ac5715 + 1ae57de commit 635d4f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ springVersion=6.1.3
springBootVersion=3.2.3

buildGroupId=com.onixbyte
buildVersion=1.6.3
buildVersion=1.6.4
projectUrl=https://onixbyte.com/JDevKit
projectGithubUrl=https://github.com/OnixByte/JDevKit
licenseName=The Apache License, Version 2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public AuthzeroTokenResolverAutoConfiguration(SimpleJwtProperties simpleJwtPrope
public TokenResolver<DecodedJWT> tokenResolver() {
var builder = AuthzeroTokenResolver.builder();

if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
builder.keyPair(simpleJwtProperties.getPublicKey(), simpleJwtProperties.getPrivateKey())
.algorithm(simpleJwtProperties.getAlgorithm());
} else if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
} else if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
builder.secret(simpleJwtProperties.getSecret())
.algorithm(simpleJwtProperties.getAlgorithm());
}
Expand Down

0 comments on commit 635d4f7

Please sign in to comment.