Skip to content

FerrusGateThe Iron Gate to Modern Identity

使用 Rust 编写的现代身份网关,支持 OAuth2、OIDC、SAML、Passkey 等协议

FerrusGate

架构概览

┌────────────┐        ┌────────────┐
│   Client   │──────▶ │ Ferrus Gate│──────▶ Downstream Services
│  (Browser) │◀────── │   (SSO)    │
└────────────┘        └────────────┘

              ┌────────────▼────────────┐
              │    Identity Providers   │
              │ (OAuth, SAML, Passkey)  │
              └─────────────────────────┘

快速开始

1. 拉取项目

bash
git clone https://github.com/AptS-1547/FerrusGate.git
cd FerrusGate

2. 编译 & 运行(开发模式)

bash
cargo run

或者使用 Docker(推荐生产环境):

bash
docker-compose up -d

项目结构

目录功能说明
core/核心身份协议实现
gate/API 接入层,处理路由与网关逻辑
console/Web 管理后台
store/存储后端接口
config/配置与初始化
tests/测试用例与集成测试

路线图

  • [ ] OAuth2 / OIDC 网关接入
  • [ ] 初步 Passkey 支持(WebAuthn)
  • [ ] 多租户数据库结构
  • [ ] 管理后台 UI(进行中)
  • [ ] 策略引擎(基于 Rego / CEL)
  • [ ] 插件系统(认证流程自定义)

命名由来

Ferrus(拉丁语:铁质的)象征 Rust 的力量与安全性,
Gate 表示统一的身份入口。

Ferrus Gate 是你系统中的身份守卫者,让安全认证不再是负担。

基于 MIT 许可证发布