Parcourir la source

rest授权校验使用jwt,并联合服务端验证

zhouchenglin il y a 6 ans
Parent
commit
0b5d6e6f3d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/test/java/net/chenlin/dp/common/utils/JwtUtilsTest.java

+ 2 - 2
src/test/java/net/chenlin/dp/common/utils/JwtUtilsTest.java

@@ -48,8 +48,8 @@ public class JwtUtilsTest {
         Assert.assertEquals(jwtUserId, userId);
 
         // 混淆密钥
-        String jwtRadomKey = jwtUtils.getMd5Key(token);
-        Assert.assertEquals(jwtRadomKey, randomKey);
+        String jwtRandomKey = jwtUtils.getMd5Key(token);
+        Assert.assertEquals(jwtRandomKey, randomKey);
 
     }