Skip to content

Commit 635d4f7

Browse files
authored
Merge pull request #41 from OnixByte/release/1.6.4
1.6.4
2 parents 5ac5715 + 1ae57de commit 635d4f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ springVersion=6.1.3
2626
springBootVersion=3.2.3
2727

2828
buildGroupId=com.onixbyte
29-
buildVersion=1.6.3
29+
buildVersion=1.6.4
3030
projectUrl=https://onixbyte.com/JDevKit
3131
projectGithubUrl=https://github.com/OnixByte/JDevKit
3232
licenseName=The Apache License, Version 2.0

simple-jwt-spring-boot-starter/src/main/java/com/onixbyte/simplejwt/autoconfiguration/AuthzeroTokenResolverAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public AuthzeroTokenResolverAutoConfiguration(SimpleJwtProperties simpleJwtPrope
9393
public TokenResolver<DecodedJWT> tokenResolver() {
9494
var builder = AuthzeroTokenResolver.builder();
9595

96-
if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
96+
if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
9797
builder.keyPair(simpleJwtProperties.getPublicKey(), simpleJwtProperties.getPrivateKey())
9898
.algorithm(simpleJwtProperties.getAlgorithm());
99-
} else if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
99+
} else if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
100100
builder.secret(simpleJwtProperties.getSecret())
101101
.algorithm(simpleJwtProperties.getAlgorithm());
102102
}

0 commit comments

Comments
 (0)