rhocfsandbox.com

demo: api shield → jwt validation

GET /api/shield-jwt is protected by api shield's jwt validation. api shield fetches the site's jwks at /.well-known/jwks.json and validates every request's Authorization: Bearer header against it. valid, unexpired, correctly-signed → 200. missing, expired, or tampered → 403 from api shield, function never runs.

# mint a token

click to mint…

# call the protected endpoint

mint a jwt first, then call…

# from your terminal

# mint
JWT=$(curl -s "https://rhocfsandbox.com/api/get-demo-jwt?exp=300" | jq -r .jwt)

# valid → 200
curl -si "https://rhocfsandbox.com/api/shield-jwt" -H "Authorization: Bearer $JWT" | head -1

# no token → 403 (or 400 depending on rule config)
curl -si "https://rhocfsandbox.com/api/shield-jwt" | head -1

# tampered → 403
curl -si "https://rhocfsandbox.com/api/shield-jwt" -H "Authorization: Bearer ${JWT}xxx" | head -1

# notes

# config

algorithmRS256 · 2048-bit RSA
kidsite-jwt-2026-08-07
issuerhttps://rhocfsandbox.com
audiencerhocfsandbox-demo
jwks endpoint/.well-known/jwks.json
token configSITE_api_shield_jwt · location: Authorization header
validation ruleSITE_api_shield_jwt_rule · action: block on non-compliant