260327_03_BUG: JWT 버전 충돌 해결 적용
This commit is contained in:
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//버전 변경은 여기서
|
//버전 변경은 여기서
|
||||||
def commonVer = "beta.1.1.02"
|
def commonVer = "beta.1.1.03"
|
||||||
|
|
||||||
group = 'com.kri.common'
|
group = 'com.kri.common'
|
||||||
version = commonVer
|
version = commonVer
|
||||||
@@ -33,9 +33,9 @@ dependencies {
|
|||||||
// ==== 여기부터는 버전 안 써도 됨 (BOM이 버전 정해줌) ====
|
// ==== 여기부터는 버전 안 써도 됨 (BOM이 버전 정해줌) ====
|
||||||
|
|
||||||
// JWT
|
// JWT
|
||||||
api 'io.jsonwebtoken:jjwt-api:0.11.5'
|
api 'io.jsonwebtoken:jjwt-api:0.12.6'
|
||||||
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
|
||||||
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
|
||||||
|
|
||||||
// Security Core
|
// Security Core
|
||||||
api 'org.springframework.security:spring-security-core'
|
api 'org.springframework.security:spring-security-core'
|
||||||
|
|||||||
@@ -79,11 +79,11 @@ public class JwtService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Jws<Claims> parseToken(String token) throws JwtException {
|
public Jws<Claims> parseToken(String token) throws JwtException {
|
||||||
return Jwts.parserBuilder()
|
return Jwts.parser()
|
||||||
.requireIssuer(properties.getIssuer())
|
.requireIssuer(properties.getIssuer())
|
||||||
.setSigningKey(key)
|
.verifyWith(key)
|
||||||
.build()
|
.build()
|
||||||
.parseClaimsJws(token);
|
.parseSignedClaims(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Claims getClaims(String token) throws JwtException {
|
public Claims getClaims(String token) throws JwtException {
|
||||||
|
|||||||
Reference in New Issue
Block a user