+1
-1
@@ -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
|
||||||
|
|||||||
+2
-2
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user