Pārlūkot izejas kodu

删除不必要配置

mrbird 6 gadi atpakaļ
vecāks
revīzija
03e3c5a529

+ 0 - 4
febs-auth/src/main/java/cc/mrbird/febs/auth/properties/FebsAuthProperties.java

@@ -14,10 +14,6 @@ import org.springframework.context.annotation.PropertySource;
 @ConfigurationProperties(prefix = "febs.auth")
 public class FebsAuthProperties {
 
-    /**
-     * client配置
-     */
-    private FebsClientsProperties[] clients = {};
     /**
      * 免认证访问路径
      */

+ 0 - 34
febs-auth/src/main/java/cc/mrbird/febs/auth/properties/FebsClientsProperties.java

@@ -1,34 +0,0 @@
-package cc.mrbird.febs.auth.properties;
-
-import lombok.Data;
-
-/**
- * @author MrBird
- */
-@Data
-public class FebsClientsProperties {
-    /**
-     * client_id
-     */
-    private String client;
-    /**
-     * client_secret
-     */
-    private String secret;
-    /**
-     * 认证类型
-     */
-    private String grantType;
-    /**
-     * 范围
-     */
-    private String scope;
-    /**
-     * 访问令牌有效时间,单位秒
-     */
-    private int accessTokenValiditySeconds = 60 * 60 * 24;
-    /**
-     * 刷新令牌有效视角,单位秒
-     */
-    private int refreshTokenValiditySeconds = 60 * 60 * 24 * 7;
-}

+ 0 - 13
febs-auth/src/main/resources/febs-auth.properties

@@ -1,16 +1,3 @@
-febs.auth.clients[0].client=febs
-febs.auth.clients[0].secret=123456
-febs.auth.clients[0].grantType=password,refresh_token
-febs.auth.clients[0].scope=all
-febs.auth.clients[0].accessTokenValiditySeconds=86400
-febs.auth.clients[0]refreshTokenValiditySeconds=604800
-
-febs.auth.clients[1].client=swagger
-febs.auth.clients[1].secret=123456
-febs.auth.clients[1].grantType=password
-febs.auth.clients[1].scope=test
-febs.auth.clients[1].accessTokenValiditySeconds=3600
-
 febs.auth.anonUrl=/actuator/**,/captcha
 febs.auth.enableJwt=true
 febs.auth.jwtAccessKey=febs