Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public String intercept(ActionInvocation invocation) throws Exception {
JWTToken jwtToken = null;
try {
jwtToken = new JWTToken(jwtCookie.getValue(),DirectProperties.JWT_V3_SECRET,
DirectProperties.JWT_VALID_ISSUERS, authorizationURL, new JWTToken.Base64SecretEncoder());
DirectProperties.JWT_VALID_ISSUERS, authorizationURL, new JWTToken.SecretEncoder());
jwtToken.verify();
} catch (TokenExpiredException e) {
logger.error("Token is expired. Try to refresh");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class DirectJWTSigner {
/**
* Secret encoder
*/
private JWTToken.SecretEncoder secretEncoder = new JWTToken.Base64SecretEncoder();
private JWTToken.SecretEncoder secretEncoder = new JWTToken.SecretEncoder();

/**
* Create the JWT signer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class JWTToken {

private String algorithmName = "HS256";

protected SecretEncoder encoder = new Base64SecretEncoder();
protected SecretEncoder encoder = new SecretEncoder();

private boolean valid = false;

Expand Down