command
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: Aug 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
api-security 示例:AntiReplay + SignVerify + TrustedHeader 三种安全中间件的组合用法。
启动后可用 curl 测试(见下方打印的 curl 命令),演示三种典型场景:
- /payment/* 完整安全链:防重放 + 签名校验 + 用户身份提取
- /wallet/* 签名校验 + 用户身份提取(无防重放)
- /order/* 信任网关 header(仅提取用户身份)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.