auth

command
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Demo: 代理鉴权 —— 配置 TUNNEL_AUTH_TOKEN 后,HTTP 代理要求客户端携带 token。

演示:

  • ConfigureGatewayAuth 启用网关 token 鉴权
  • 无 token 请求被拒(401)
  • 带 token 请求成功(Authorization: Bearer / X-Tunnel-Token)

运行:

go run ./core/tunnel/example/auth

Jump to

Keyboard shortcuts

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