api-security

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

api-security 示例:AntiReplay + SignVerify + TrustedHeader 三种安全中间件的组合用法。

启动后可用 curl 测试(见下方打印的 curl 命令),演示三种典型场景:

  • /payment/* 完整安全链:防重放 + 签名校验 + 用户身份提取
  • /wallet/* 签名校验 + 用户身份提取(无防重放)
  • /order/* 信任网关 header(仅提取用户身份)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL