1 Star 0 Fork 98

stepwen / aizuda-components

forked from aizuda / aizuda-components 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2022-03-03 10:16 . 新增服务器监控组件

aizuda-components

logo

  • 爱组搭 ~ 低代码组件化开发平台之组件库

  • 愿景:每个人都是架构师

爱组搭 ~ 组件源码示例演示

微信交流群

公共模块

  • aizuda-common 主要内容 工具类 等。

限流(分布式锁)模块

  • aizuda-limiter 主要内容 api 限流,短信,邮件 发送限流、控制恶意利用验证码功能 等。
<dependency>
  <groupId>com.aizuda</groupId>
  <artifactId>aizuda-limiter</artifactId>
  <version>1.0.0</version>
</dependency>

系统监控模块

  • aizuda-monitor 主要内容 操作系统 cpu 内存 jvm 系统 数据查询 等。

机器人模块

  • aizuda-robot 主要内容 bug 异常 推送到 企业微信 飞书 钉钉 等平台。

企业微信机器人申请

钉钉机器人申请

飞书机器人申请

<dependency>
  <groupId>com.aizuda</groupId>
  <artifactId>aizuda-robot</artifactId>
  <version>0.0.1</version>
</dependency>

安全模块

  • aizuda-security 主要内容 api 请求 签名 解密,响应加密,单点登录 等。
<dependency>
  <groupId>com.aizuda</groupId>
  <artifactId>aizuda-security</artifactId>
  <version>1.0.0</version>
</dependency>

签名规则

md5( md5(传入内容) + timestamp ) = sign

请求约定

时间戳 timestamp 签名 sign 参数( MD5 算法 )需要放在 header 或 url 明文传输。

开启加密签名内容为加密后的密文
  • 单点登录功能支持,登录支持 cookie 或 token 两种模式,更多细节点击 kisso
// 生成 jwt 票据,访问请求头设置‘ accessToken=票据内容 ’ 适合前后分离模式单点登录
String jwtToken = SSOToken.create().setId(1).setIssuer("admin").setOrigin(TokenOrigin.HTML5).getToken();

// 解析票据
SSOToken ssoToken = SSOToken.parser(jwtToken);

// Cookie 模式设置
SSOHelper.setCookie(request, response,  new SSOToken().setId(String.valueOf(1)).setIssuer("admin"));

// 安全配置如下
kisso:
  config:
    # 开启 https 有效,传输更安全
    cookie-secure: true
    # 防止 XSS 防止脚本攻击
    cookie-http-only: true
    # 防止 CSRF 跨站攻击
    cookie-same-site: Lax
    # 加密算法 RSA
    sign-algorithm: RS512
    ...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stepwen2/aizuda-components.git
git@gitee.com:stepwen2/aizuda-components.git
stepwen2
aizuda-components
aizuda-components
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891