🐛 SIGN_KEY修改为一致
This commit is contained in:
parent
6ef7cf6884
commit
f61491cd00
|
|
@ -17,6 +17,7 @@ package org.springblade.gateway.utils;
|
||||||
|
|
||||||
import io.jsonwebtoken.Claims;
|
import io.jsonwebtoken.Claims;
|
||||||
import io.jsonwebtoken.Jwts;
|
import io.jsonwebtoken.Jwts;
|
||||||
|
import org.springblade.core.launch.constant.TokenConstant;
|
||||||
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Base64;
|
import java.util.Base64;
|
||||||
|
|
@ -28,8 +29,8 @@ import java.util.Base64;
|
||||||
*/
|
*/
|
||||||
public class JwtUtil {
|
public class JwtUtil {
|
||||||
|
|
||||||
public static String SIGN_KEY = "BladeX";
|
public static String SIGN_KEY = TokenConstant.SIGN_KEY;
|
||||||
public static String BEARER = "bearer";
|
public static String BEARER = TokenConstant.BEARER;
|
||||||
public static Integer AUTH_LENGTH = 7;
|
public static Integer AUTH_LENGTH = 7;
|
||||||
|
|
||||||
public static String BASE64_SECURITY = Base64.getEncoder().encodeToString(SIGN_KEY.getBytes(StandardCharsets.UTF_8));
|
public static String BASE64_SECURITY = Base64.getEncoder().encodeToString(SIGN_KEY.getBytes(StandardCharsets.UTF_8));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user