Merge pull request #41 from OnixByte/release/1.6.4

1.6.4
This commit is contained in:
Zihlu Wang
2024-09-15 09:44:08 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ springVersion=6.1.3
springBootVersion=3.2.3 springBootVersion=3.2.3
buildGroupId=com.onixbyte buildGroupId=com.onixbyte
buildVersion=1.6.3 buildVersion=1.6.4
projectUrl=https://onixbyte.com/JDevKit projectUrl=https://onixbyte.com/JDevKit
projectGithubUrl=https://github.com/OnixByte/JDevKit projectGithubUrl=https://github.com/OnixByte/JDevKit
licenseName=The Apache License, Version 2.0 licenseName=The Apache License, Version 2.0
@@ -93,10 +93,10 @@ public class AuthzeroTokenResolverAutoConfiguration {
public TokenResolver<DecodedJWT> tokenResolver() { public TokenResolver<DecodedJWT> tokenResolver() {
var builder = AuthzeroTokenResolver.builder(); var builder = AuthzeroTokenResolver.builder();
if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) { if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
builder.keyPair(simpleJwtProperties.getPublicKey(), simpleJwtProperties.getPrivateKey()) builder.keyPair(simpleJwtProperties.getPublicKey(), simpleJwtProperties.getPrivateKey())
.algorithm(simpleJwtProperties.getAlgorithm()); .algorithm(simpleJwtProperties.getAlgorithm());
} else if (TokenAlgorithm.ECDSA_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) { } else if (TokenAlgorithm.HMAC_ALGORITHMS.contains(simpleJwtProperties.getAlgorithm())) {
builder.secret(simpleJwtProperties.getSecret()) builder.secret(simpleJwtProperties.getSecret())
.algorithm(simpleJwtProperties.getAlgorithm()); .algorithm(simpleJwtProperties.getAlgorithm());
} }