This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-web.git


The following commit(s) were added to refs/heads/main by this push:
     new cd487b31 [Bug][Seatunnel-web] Jwt Algorithm is hardcoded. Use the 
configured jwt algorithm (#179)
cd487b31 is described below

commit cd487b313b5b9f5833cc1bde740b58bbc8483260
Author: BilwaST <[email protected]>
AuthorDate: Wed Aug 14 13:22:07 2024 +0530

    [Bug][Seatunnel-web] Jwt Algorithm is hardcoded. Use the configured jwt 
algorithm (#179)
---
 .../src/main/java/org/apache/seatunnel/app/security/JwtUtils.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/security/JwtUtils.java
 
b/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/security/JwtUtils.java
index 7b866c71..92e7010c 100644
--- 
a/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/security/JwtUtils.java
+++ 
b/seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/security/JwtUtils.java
@@ -56,7 +56,7 @@ public class JwtUtils implements InitializingBean {
         final Date expireDate = DateUtils.addSeconds(currentDate, expireTime);
 
         return Jwts.builder()
-                .signWith(SignatureAlgorithm.HS256, 
secretKey.getBytes(StandardCharsets.UTF_8))
+                .signWith(algorithm, 
secretKey.getBytes(StandardCharsets.UTF_8))
                 .setId(UUID.randomUUID().toString())
                 .setClaims(data)
                 .setIssuedAt(currentDate)

Reply via email to