瀏覽代碼

集成sso

guowei 2 年之前
父節點
當前提交
31716933d6
共有 52 個文件被更改,包括 9 次插入2 次删除
  1. 2 1
      pom.xml
  2. 二進制
      src/main/java/com/cbkj/platform/PlatformApi.java
  3. 二進制
      src/main/java/com/cbkj/platform/api/beans/entity/ResEntity.java
  4. 二進制
      src/main/java/com/cbkj/platform/api/beans/user/AdminInfo.java
  5. 二進制
      src/main/java/com/cbkj/platform/api/config/multipleDataSource/DynamicDataSourceRegister.java
  6. 二進制
      src/main/java/com/cbkj/platform/api/config/swagger/Swagger2Config.java
  7. 二進制
      src/main/java/com/cbkj/platform/api/config/utils/Constant.java
  8. 二進制
      src/main/java/com/cbkj/platform/api/config/utils/JasyptUtils.java
  9. 二進制
      src/main/java/com/cbkj/platform/api/config/utils/Page.java
  10. 二進制
      src/main/java/com/cbkj/platform/api/controller/dic/DicDataController.java
  11. 二進制
      src/main/java/com/cbkj/platform/api/controller/org/SysAppController.java
  12. 二進制
      src/main/java/com/cbkj/platform/api/controller/org/SysDepartmentController.java
  13. 二進制
      src/main/java/com/cbkj/platform/api/controller/org/SysInstitutionController.java
  14. 二進制
      src/main/java/com/cbkj/platform/api/controller/param/SysParamController.java
  15. 二進制
      src/main/java/com/cbkj/platform/api/controller/sso/SsoController.java
  16. 二進制
      src/main/java/com/cbkj/platform/api/controller/user/AdminInfoController.java
  17. 二進制
      src/main/java/com/cbkj/platform/api/controller/user/AdminMenuController.java
  18. 二進制
      src/main/java/com/cbkj/platform/api/mapper/user/AdminInfoMapper.java
  19. 二進制
      src/main/java/com/cbkj/platform/api/service/dic/DicDataService.java
  20. 二進制
      src/main/java/com/cbkj/platform/api/service/org/SysAppService.java
  21. 二進制
      src/main/java/com/cbkj/platform/api/service/org/SysDepartmentService.java
  22. 二進制
      src/main/java/com/cbkj/platform/api/service/org/SysInstitutionService.java
  23. 二進制
      src/main/java/com/cbkj/platform/api/service/param/SysParamService.java
  24. 二進制
      src/main/java/com/cbkj/platform/api/service/sso/UserService.java
  25. 二進制
      src/main/java/com/cbkj/platform/api/service/user/AdminInfoService.java
  26. 二進制
      src/main/java/com/cbkj/platform/api/service/user/AdminMenuService.java
  27. 二進制
      src/main/java/com/cbkj/platform/config/entity/ResEntity.java
  28. 二進制
      src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSource.java
  29. 二進制
      src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSourceContextHolder.java
  30. 二進制
      src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSourceRegister.java
  31. 二進制
      src/main/java/com/cbkj/platform/config/redis/RedisConfig.java
  32. 二進制
      src/main/java/com/cbkj/platform/config/swagger/Swagger2Config.java
  33. 二進制
      src/main/java/com/cbkj/platform/config/utils/Constant.java
  34. 二進制
      src/main/java/com/cbkj/platform/config/utils/JasyptUtils.java
  35. 二進制
      src/main/java/com/cbkj/platform/config/utils/JedisUtil.java
  36. 二進制
      src/main/java/com/cbkj/platform/config/utils/Page.java
  37. 二進制
      src/main/java/com/cbkj/platform/sso/conf/Conf.java
  38. 二進制
      src/main/java/com/cbkj/platform/sso/encryption/BASE64MultipartFile.java
  39. 二進制
      src/main/java/com/cbkj/platform/sso/encryption/Base64Utils.java
  40. 二進制
      src/main/java/com/cbkj/platform/sso/encryption/MD5Util.java
  41. 二進制
      src/main/java/com/cbkj/platform/sso/encryption/RSAEncryption.java
  42. 二進制
      src/main/java/com/cbkj/platform/sso/filter/SsoTokenFilter.java
  43. 二進制
      src/main/java/com/cbkj/platform/sso/login/SsoTokenLoginHelper.java
  44. 二進制
      src/main/java/com/cbkj/platform/sso/path/PathMatcher.java
  45. 二進制
      src/main/java/com/cbkj/platform/sso/path/impl/AntPathMatcher.java
  46. 二進制
      src/main/java/com/cbkj/platform/sso/store/SsoLoginStore.java
  47. 二進制
      src/main/java/com/cbkj/platform/sso/store/SsoSessionIdHelper.java
  48. 二進制
      src/main/java/com/cbkj/platform/sso/user/SsoUser.java
  49. 二進制
      src/main/java/com/cbkj/platform/sso/util/CookieUtil.java
  50. 二進制
      src/main/java/com/cbkj/platform/sso/util/StringUtils.java
  51. 6 0
      src/main/resources/mappers/user/AdminInfoMapper.xml
  52. 1 1
      src/main/resources/zlogback.xml

+ 2 - 1
pom.xml

@@ -33,7 +33,7 @@
         <druid.version>1.1.0</druid.version>
         <mybatis.version>1.3.2</mybatis.version>
         <jasypt.version>2.0.0</jasypt.version>
-        <start-class>com.cbkj.platform.api.PlatformApi</start-class>
+        <start-class>com.cbkj.platform.PlatformApi</start-class>
     </properties>
 
     <parent>
@@ -175,6 +175,7 @@
     </licenses>
 
     <build>
+        <finalName>tcm-platform-api</finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

二進制
src/main/java/com/cbkj/platform/api/PlatformApi.java → src/main/java/com/cbkj/platform/PlatformApi.java


二進制
src/main/java/com/cbkj/platform/api/beans/entity/ResEntity.java


二進制
src/main/java/com/cbkj/platform/api/beans/user/AdminInfo.java


二進制
src/main/java/com/cbkj/platform/api/config/multipleDataSource/DynamicDataSourceRegister.java


二進制
src/main/java/com/cbkj/platform/api/config/swagger/Swagger2Config.java


二進制
src/main/java/com/cbkj/platform/api/config/utils/Constant.java


二進制
src/main/java/com/cbkj/platform/api/config/utils/JasyptUtils.java


二進制
src/main/java/com/cbkj/platform/api/config/utils/Page.java


二進制
src/main/java/com/cbkj/platform/api/controller/dic/DicDataController.java


二進制
src/main/java/com/cbkj/platform/api/controller/org/SysAppController.java


二進制
src/main/java/com/cbkj/platform/api/controller/org/SysDepartmentController.java


二進制
src/main/java/com/cbkj/platform/api/controller/org/SysInstitutionController.java


二進制
src/main/java/com/cbkj/platform/api/controller/param/SysParamController.java


二進制
src/main/java/com/cbkj/platform/api/controller/sso/SsoController.java


二進制
src/main/java/com/cbkj/platform/api/controller/user/AdminInfoController.java


二進制
src/main/java/com/cbkj/platform/api/controller/user/AdminMenuController.java


二進制
src/main/java/com/cbkj/platform/api/mapper/user/AdminInfoMapper.java


二進制
src/main/java/com/cbkj/platform/api/service/dic/DicDataService.java


二進制
src/main/java/com/cbkj/platform/api/service/org/SysAppService.java


二進制
src/main/java/com/cbkj/platform/api/service/org/SysDepartmentService.java


二進制
src/main/java/com/cbkj/platform/api/service/org/SysInstitutionService.java


二進制
src/main/java/com/cbkj/platform/api/service/param/SysParamService.java


二進制
src/main/java/com/cbkj/platform/api/service/sso/UserService.java


二進制
src/main/java/com/cbkj/platform/api/service/user/AdminInfoService.java


二進制
src/main/java/com/cbkj/platform/api/service/user/AdminMenuService.java


二進制
src/main/java/com/cbkj/platform/config/entity/ResEntity.java


二進制
src/main/java/com/cbkj/platform/api/config/multipleDataSource/DynamicDataSource.java → src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSource.java


二進制
src/main/java/com/cbkj/platform/api/config/multipleDataSource/DynamicDataSourceContextHolder.java → src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSourceContextHolder.java


二進制
src/main/java/com/cbkj/platform/config/multipleDataSource/DynamicDataSourceRegister.java


二進制
src/main/java/com/cbkj/platform/config/redis/RedisConfig.java


二進制
src/main/java/com/cbkj/platform/config/swagger/Swagger2Config.java


二進制
src/main/java/com/cbkj/platform/config/utils/Constant.java


二進制
src/main/java/com/cbkj/platform/config/utils/JasyptUtils.java


二進制
src/main/java/com/cbkj/platform/config/utils/JedisUtil.java


二進制
src/main/java/com/cbkj/platform/config/utils/Page.java


二進制
src/main/java/com/cbkj/platform/sso/conf/Conf.java


二進制
src/main/java/com/cbkj/platform/sso/encryption/BASE64MultipartFile.java


二進制
src/main/java/com/cbkj/platform/sso/encryption/Base64Utils.java


二進制
src/main/java/com/cbkj/platform/sso/encryption/MD5Util.java


二進制
src/main/java/com/cbkj/platform/sso/encryption/RSAEncryption.java


二進制
src/main/java/com/cbkj/platform/sso/filter/SsoTokenFilter.java


二進制
src/main/java/com/cbkj/platform/sso/login/SsoTokenLoginHelper.java


二進制
src/main/java/com/cbkj/platform/sso/path/PathMatcher.java


二進制
src/main/java/com/cbkj/platform/sso/path/impl/AntPathMatcher.java


二進制
src/main/java/com/cbkj/platform/sso/store/SsoLoginStore.java


二進制
src/main/java/com/cbkj/platform/sso/store/SsoSessionIdHelper.java


二進制
src/main/java/com/cbkj/platform/sso/user/SsoUser.java


二進制
src/main/java/com/cbkj/platform/sso/util/CookieUtil.java


二進制
src/main/java/com/cbkj/platform/sso/util/StringUtils.java


+ 6 - 0
src/main/resources/mappers/user/AdminInfoMapper.xml

@@ -134,4 +134,10 @@
         order by app_id, ins_code, dept_id
         ) e
     </select>
+
+    <select id="findUser" parameterType="String" resultMap="BaseResultMap">
+        select *
+        from sys_admin_info
+        where user_name = #{userName} and status != '1'
+    </select>
 </mapper>

+ 1 - 1
src/main/resources/zlogback.xml

@@ -144,7 +144,7 @@
 
     <!--日志异步到数据库  -->
     <!--<appender name="DBAPPENDER" class="ch.qos.logback.classic.db.DBAppender">-->
-    <!--<connectionSource class="ch.qos.logback.core.db.DataSourceConnectionSource">-->
+    <!--<connectionSource class="ch.qos.logback.sso.db.DataSourceConnectionSource">-->
     <!--<TargetDataSource class="com.zaxxer.hikari.HikariDataSource">-->
     <!--<driverClassName>com.mysql.jdbc.Driver</driverClassName>-->
     <!--<jdbcUrl>jdbc:mysql://localhost:3306/albedo-new?useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false</jdbcUrl>-->