Skip to content

Validate a per-device sotc_ tunnel token (frp httpPlugins callback).

POST
/api/internal/frps/auth

Called by the frp server’s httpPlugins block for every frpc Login event. Validates the presented sotc_ token against the ShellDeviceCredential table. Returns {\"reject\": false, \"unchange\": true} on success or {\"reject\": true, \"reject_reason\": \"...\"} on failure. Security boundary: network isolation (docker compose soc-network), NOT an X-Gateway-Token header check (frp v0.69 httpPlugins cannot inject headers).

Request Body required

Frp HTTP plugin auth request envelope (frp v0.69).

object
content

Inner content block of the frp HTTP plugin Login message.

object
arch
Any of:
string
client_address
Any of:
string
hostname
Any of:
string
metas
Any of:
object
os
Any of:
string
pool_count
Any of:
integer
privilege_key
Any of:
string
run_id
Any of:
string
timestamp
Any of:
integer
user
Any of:
string
version
Any of:
string
op
required
string
version
Any of:
string

Responses

200

Successful Response

object

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string