提交 93bee4f5 编写于 作者: 智布道's avatar 智布道 👁

🔀 合并Braavos96提交的github PR #16

上级 5c0b8eb9
......@@ -3,6 +3,9 @@ package me.zhyd.oauth.utils;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class GlobalAuthUtilTest {
@Test
......@@ -24,7 +27,9 @@ public class GlobalAuthUtilTest {
@Test
public void testParseStringToMap() {
Assert.assertEquals("{bar=baz}",
Map expected = new HashMap();
expected.put("bar", "baz");
Assert.assertEquals(expected,
GlobalAuthUtil.parseStringToMap("foo&bar=baz"));
}
......
### 2019/07/12
1. 合并[Braavos96](https://github.com/Braavos96)提交的[PR#16](https://github.com/zhangyd-c/JustAuth/pull/16)
### 2019/06/28
1. 修复百度登录获取不到token失效时间的问题
2. 增加state参数校验,预防CSRF。**强烈建议启用state**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册