From 8a72c69474d57a588e02382f28f55c9500107353 Mon Sep 17 00:00:00 2001
From: click33 <2393584716@qq.com>
Date: Mon, 11 Oct 2021 19:44:02 +0800
Subject: [PATCH] v1.27.0
---
README.md | 2 +-
mvn clean.bat | 12 +-
pom.xml | 4 +-
sa-token-core/pom.xml | 2 +-
.../dev33/satoken/temp/SaTempInterface.java | 2 +-
.../cn/dev33/satoken/temp/SaTempUtil.java | 8 +
.../sa-token-demo-alone-redis/pom.xml | 2 +-
sa-token-demo/sa-token-demo-jwt/pom.xml | 2 +-
.../sa-token-demo-oauth2-client/pom.xml | 2 +-
.../sa-token-demo-oauth2-server/pom.xml | 2 +-
.../sa-token-demo-quick-login/pom.xml | 2 +-
sa-token-demo/sa-token-demo-solon/pom.xml | 2 +-
.../sa-token-demo-springboot/pom.xml | 2 +-
.../sa-token-demo-sso-server/pom.xml | 2 +-
.../sa-token-demo-sso1-client/pom.xml | 2 +-
.../sa-token-demo-sso2-client/pom.xml | 2 +-
.../sa-token-demo-sso3-client/pom.xml | 2 +-
sa-token-demo/sa-token-demo-thymeleaf/pom.xml | 2 +-
sa-token-demo/sa-token-demo-webflux/pom.xml | 2 +-
sa-token-doc/doc/README.md | 2 +-
sa-token-doc/doc/index.html | 2 +-
sa-token-doc/doc/start/download.md | 2 +
sa-token-doc/index.html | 2 +-
sa-token-plugin/pom.xml | 2 +-
sa-token-plugin/sa-token-alone-redis/pom.xml | 2 +-
.../sa-token-dao-redis-jackson/pom.xml | 2 +-
sa-token-plugin/sa-token-dao-redis/pom.xml | 2 +-
.../sa-token-dialect-thymeleaf/pom.xml | 2 +-
sa-token-plugin/sa-token-oauth2/pom.xml | 2 +-
sa-token-plugin/sa-token-quick-login/pom.xml | 2 +-
sa-token-plugin/sa-token-spring-aop/pom.xml | 2 +-
sa-token-plugin/sa-token-temp-jwt/pom.xml | 2 +-
sa-token-starter/pom.xml | 2 +-
.../pom.xml | 2 +-
sa-token-starter/sa-token-servlet/pom.xml | 2 +-
.../sa-token-solon-plugin/pom.xml | 2 +-
.../sa-token-spring-boot-starter/pom.xml | 2 +-
.../src/test/java/com/pj/test/BasicsTest.java | 367 ++++++++++++++++++
.../test/java/com/pj/test/ManyLoginTest.java | 164 ++++++++
.../pj/test/SaTokenSpringBootStarterTest.java | 209 ----------
40 files changed, 578 insertions(+), 254 deletions(-)
create mode 100644 sa-token-starter/sa-token-spring-boot-starter/src/test/java/com/pj/test/BasicsTest.java
create mode 100644 sa-token-starter/sa-token-spring-boot-starter/src/test/java/com/pj/test/ManyLoginTest.java
delete mode 100644 sa-token-starter/sa-token-spring-boot-starter/src/test/java/com/pj/test/SaTokenSpringBootStarterTest.java
diff --git a/README.md b/README.md
index 6c4f21f7..a2d9559e 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-Sa-Token v1.26.0
+Sa-Token v1.27.0
一个轻量级 Java 权限认证框架,让鉴权变得简单、优雅!
diff --git a/mvn clean.bat b/mvn clean.bat
index 3714ac9b..a0ed0917 100644
--- a/mvn clean.bat
+++ b/mvn clean.bat
@@ -37,11 +37,11 @@ cd sa-token-demo-alone-redis
call mvn clean
cd ..
-cd sa-token-demo-sso1
+cd sa-token-demo-thymeleaf
call mvn clean
cd ..
-cd sa-token-demo-sso1-server
+cd sa-token-demo-sso-server
call mvn clean
cd ..
@@ -49,18 +49,10 @@ cd sa-token-demo-sso1-client
call mvn clean
cd ..
-cd sa-token-demo-sso2-server
-call mvn clean
-cd ..
-
cd sa-token-demo-sso2-client
call mvn clean
cd ..
-cd sa-token-demo-sso3-server
-call mvn clean
-cd ..
-
cd sa-token-demo-sso3-client
call mvn clean
cd ..
diff --git a/pom.xml b/pom.xml
index 2bcefbb5..e9676e79 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
cn.dev33
sa-token-parent
pom
- 1.26.0
+ 1.27.0
sa-token
@@ -36,7 +36,7 @@
- 1.26.0
+ 1.27.0
1.8
utf-8
utf-8
diff --git a/sa-token-core/pom.xml b/sa-token-core/pom.xml
index 2ab1dc05..f855acaa 100644
--- a/sa-token-core/pom.xml
+++ b/sa-token-core/pom.xml
@@ -7,7 +7,7 @@
cn.dev33
sa-token-parent
- 1.26.0
+ 1.27.0
jar
diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempInterface.java b/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempInterface.java
index 942bd705..dec08014 100644
--- a/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempInterface.java
+++ b/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempInterface.java
@@ -63,7 +63,7 @@ public interface SaTempInterface {
}
/**
- * 删除一个token
+ * 删除一个 token
* @param token 指定token
*/
public default void deleteToken(String token) {
diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempUtil.java b/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempUtil.java
index b3d98c99..6dd78669 100644
--- a/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempUtil.java
+++ b/sa-token-core/src/main/java/cn/dev33/satoken/temp/SaTempUtil.java
@@ -48,5 +48,13 @@ public class SaTempUtil {
public static long getTimeout(String token) {
return SaManager.getSaTemp().getTimeout(token);
}
+
+ /**
+ * 删除一个 token
+ * @param token 指定token
+ */
+ public static void deleteToken(String token) {
+ SaManager.getSaTemp().deleteToken(token);
+ }
}
diff --git a/sa-token-demo/sa-token-demo-alone-redis/pom.xml b/sa-token-demo/sa-token-demo-alone-redis/pom.xml
index 4f9562d9..059df9a0 100644
--- a/sa-token-demo/sa-token-demo-alone-redis/pom.xml
+++ b/sa-token-demo/sa-token-demo-alone-redis/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-jwt/pom.xml b/sa-token-demo/sa-token-demo-jwt/pom.xml
index b3258df1..98903cf0 100644
--- a/sa-token-demo/sa-token-demo-jwt/pom.xml
+++ b/sa-token-demo/sa-token-demo-jwt/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-oauth2-client/pom.xml b/sa-token-demo/sa-token-demo-oauth2-client/pom.xml
index c3a7efcc..32718d4d 100644
--- a/sa-token-demo/sa-token-demo-oauth2-client/pom.xml
+++ b/sa-token-demo/sa-token-demo-oauth2-client/pom.xml
@@ -17,7 +17,7 @@
1.8
3.1.1
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-oauth2-server/pom.xml b/sa-token-demo/sa-token-demo-oauth2-server/pom.xml
index ec934aea..cf1e3d5f 100644
--- a/sa-token-demo/sa-token-demo-oauth2-server/pom.xml
+++ b/sa-token-demo/sa-token-demo-oauth2-server/pom.xml
@@ -17,7 +17,7 @@
1.8
3.1.1
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-quick-login/pom.xml b/sa-token-demo/sa-token-demo-quick-login/pom.xml
index ff180acf..985f5fdd 100644
--- a/sa-token-demo/sa-token-demo-quick-login/pom.xml
+++ b/sa-token-demo/sa-token-demo-quick-login/pom.xml
@@ -15,7 +15,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-solon/pom.xml b/sa-token-demo/sa-token-demo-solon/pom.xml
index ba2bbd36..6faefeed 100644
--- a/sa-token-demo/sa-token-demo-solon/pom.xml
+++ b/sa-token-demo/sa-token-demo-solon/pom.xml
@@ -9,7 +9,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-springboot/pom.xml b/sa-token-demo/sa-token-demo-springboot/pom.xml
index c746f7cb..4f62f1d9 100644
--- a/sa-token-demo/sa-token-demo-springboot/pom.xml
+++ b/sa-token-demo/sa-token-demo-springboot/pom.xml
@@ -17,7 +17,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-sso-server/pom.xml b/sa-token-demo/sa-token-demo-sso-server/pom.xml
index 7651b0b1..7606a62f 100644
--- a/sa-token-demo/sa-token-demo-sso-server/pom.xml
+++ b/sa-token-demo/sa-token-demo-sso-server/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-sso1-client/pom.xml b/sa-token-demo/sa-token-demo-sso1-client/pom.xml
index 3215da41..a1330a67 100644
--- a/sa-token-demo/sa-token-demo-sso1-client/pom.xml
+++ b/sa-token-demo/sa-token-demo-sso1-client/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-sso2-client/pom.xml b/sa-token-demo/sa-token-demo-sso2-client/pom.xml
index 39a7564c..6cac052c 100644
--- a/sa-token-demo/sa-token-demo-sso2-client/pom.xml
+++ b/sa-token-demo/sa-token-demo-sso2-client/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-sso3-client/pom.xml b/sa-token-demo/sa-token-demo-sso3-client/pom.xml
index c1209af4..c7ad31ff 100644
--- a/sa-token-demo/sa-token-demo-sso3-client/pom.xml
+++ b/sa-token-demo/sa-token-demo-sso3-client/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-thymeleaf/pom.xml b/sa-token-demo/sa-token-demo-thymeleaf/pom.xml
index a576aa2b..da09a711 100644
--- a/sa-token-demo/sa-token-demo-thymeleaf/pom.xml
+++ b/sa-token-demo/sa-token-demo-thymeleaf/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-demo/sa-token-demo-webflux/pom.xml b/sa-token-demo/sa-token-demo-webflux/pom.xml
index ae7cf214..d53616ba 100644
--- a/sa-token-demo/sa-token-demo-webflux/pom.xml
+++ b/sa-token-demo/sa-token-demo-webflux/pom.xml
@@ -16,7 +16,7 @@
- 1.26.0
+ 1.27.0
diff --git a/sa-token-doc/doc/README.md b/sa-token-doc/doc/README.md
index bef14a9c..c986dca0 100644
--- a/sa-token-doc/doc/README.md
+++ b/sa-token-doc/doc/README.md
@@ -1,7 +1,7 @@
-Sa-Token v1.26.0
+Sa-Token v1.27.0
一个轻量级 Java 权限认证框架,让鉴权变得简单、优雅!
diff --git a/sa-token-doc/doc/index.html b/sa-token-doc/doc/index.html
index 59de49aa..ea38b4e7 100644
--- a/sa-token-doc/doc/index.html
+++ b/sa-token-doc/doc/index.html
@@ -61,7 +61,7 @@