Git Product home page Git Product logo

aizuda-components's Introduction

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
    ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.