Skip to content

Commit

Permalink
refactor : JWT 암호화
Browse files Browse the repository at this point in the history
  • Loading branch information
MyunghyunNero committed Nov 23, 2023
1 parent 93938e8 commit bb5a5a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/kusitms/gallae/global/jwt/JwtProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.micrometer.common.util.StringUtils;
import jakarta.servlet.http.HttpServletRequest;
import kusitms.gallae.global.Role;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
Expand All @@ -23,7 +24,9 @@ public class JwtProvider{

private static final String AUTHORITIES_KEY = "authorities";

private final String secret="wewef23fewfwfwfeefkalefalekfalekfaef2iweifejslqeqwew";

@Value("${jwt.security.jwt-secret}")
private String secret;
private final long durationSeconds= 60*60;


Expand Down

0 comments on commit bb5a5a6

Please sign in to comment.