Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 3ac206a

Browse files
committed
jwt seacret as plain text
1 parent 9ad51de commit 3ac206a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/java/main/com/topcoder/direct/services/view/interceptors/AuthenticationInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public String intercept(ActionInvocation invocation) throws Exception {
295295
JWTToken jwtToken = null;
296296
try {
297297
jwtToken = new JWTToken(jwtCookie.getValue(),DirectProperties.JWT_V3_SECRET,
298-
DirectProperties.JWT_VALID_ISSUERS, authorizationURL, new JWTToken.Base64SecretEncoder());
298+
DirectProperties.JWT_VALID_ISSUERS, authorizationURL, new JWTToken.SecretEncoder());
299299
jwtToken.verify();
300300
} catch (TokenExpiredException e) {
301301
logger.error("Token is expired. Try to refresh");

src/java/main/com/topcoder/direct/services/view/util/jwt/DirectJWTSigner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class DirectJWTSigner {
3838
/**
3939
* Secret encoder
4040
*/
41-
private JWTToken.SecretEncoder secretEncoder = new JWTToken.Base64SecretEncoder();
41+
private JWTToken.SecretEncoder secretEncoder = new JWTToken.SecretEncoder();
4242

4343
/**
4444
* Create the JWT signer

src/java/main/com/topcoder/direct/services/view/util/jwt/JWTToken.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class JWTToken {
8181

8282
private String algorithmName = "HS256";
8383

84-
protected SecretEncoder encoder = new Base64SecretEncoder();
84+
protected SecretEncoder encoder = new SecretEncoder();
8585

8686
private boolean valid = false;
8787

0 commit comments

Comments
 (0)