diff --git a/sa-token-plugin/pom.xml b/sa-token-plugin/pom.xml index 8b5b5764..f9698991 100644 --- a/sa-token-plugin/pom.xml +++ b/sa-token-plugin/pom.xml @@ -25,6 +25,9 @@ sa-token-hutool-timed-cache sa-token-thymeleaf sa-token-freemarker + sa-token-dubbo + sa-token-dubbo3 + sa-token-temp-jwt sa-token-redis-template @@ -41,10 +44,7 @@ sa-token-sso sa-token-oauth2 sa-token-quick-login - sa-token-temp-jwt sa-token-jwt - sa-token-dubbo - sa-token-dubbo3 sa-token-grpc diff --git a/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForJackson.java b/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForJackson.java index 32ddc6cb..c9775e4b 100644 --- a/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForJackson.java +++ b/sa-token-plugin/sa-token-jackson/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForJackson.java @@ -19,7 +19,7 @@ import cn.dev33.satoken.SaManager; import cn.dev33.satoken.json.SaJsonTemplateForJackson; /** - * SaToken 插件:JSON 转换器安装 + * SaToken 插件安装:JSON 转换器 (jackjson 版) * * @author click33 * @since 1.41.0 diff --git a/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForTempForJwt.java b/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForTempForJwt.java new file mode 100644 index 00000000..cd9bd9ed --- /dev/null +++ b/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/plugin/SaTokenPluginForTempForJwt.java @@ -0,0 +1,34 @@ +/* + * Copyright 2020-2099 sa-token.cc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.dev33.satoken.plugin; + +import cn.dev33.satoken.SaManager; +import cn.dev33.satoken.temp.jwt.SaTempForJwt; + +/** + * SaToken 插件安装:临时 token 生成器 - Jwt 版 + * + * @author click33 + * @since 1.41.0 + */ +public class SaTokenPluginForTempForJwt implements SaTokenPlugin { + + @Override + public void setup() { + SaManager.setSaTemp(new SaTempForJwt()); + } + +} \ No newline at end of file diff --git a/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/services/cn.dev33.satoken.plugin.SaTokenPlugin b/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/services/cn.dev33.satoken.plugin.SaTokenPlugin new file mode 100644 index 00000000..195a264e --- /dev/null +++ b/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/services/cn.dev33.satoken.plugin.SaTokenPlugin @@ -0,0 +1 @@ +cn.dev33.satoken.plugin.SaTokenPluginForTempForJwt \ No newline at end of file diff --git a/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring.factories b/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 0c16a1f2..00000000 --- a/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.dev33.satoken.temp.jwt.SaTempForJwt \ No newline at end of file diff --git a/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports deleted file mode 100644 index e7b03e0c..00000000 --- a/sa-token-plugin/sa-token-temp-jwt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ /dev/null @@ -1 +0,0 @@ -cn.dev33.satoken.temp.jwt.SaTempForJwt \ No newline at end of file