endpoints/js-agent/examples/relay-test.html
Protected Server:https://ac.opennhp.org Invisible by default, scan its ports to verifyScan Ports
✓ Knock Successful
You can now access
Redirecting in 5 seconds Stay on this page
Ready
Request AccessClear Log
▶ Runtime Flow
Initialize NHPAgent with a browser relay transport
Attach app identity and trusted nhp-server key
Build encrypted KNK packet using ECDH and AEAD
POST to nhp-relay server, which forwards the knock to nhp-server over UDP
Parse ACK/COK response and extract temporary access details
Redirect the user to the now-accessible protected resource
#☰ SDK Event Logclick to fold / unfold
#⚙ NHP-Agent Parametersclick to view / edit
nhp-server Public Key (Base64)
Agent Private Key (Base64)
Agent Public Key (register this with nhp-server)
Cipher Schemecurve25519 (X25519 + AES-GCM + BLAKE2s)gmsm (SM2 + SM4-GCM + SM3)
Timeout (ms)
Relay URL
User ID
Device ID
Organization ID
Resource ID
Service ID