plugins/protocol_lws_oauth_preauth/README.md
This plugin provides a WebSocket-based waiting room for devices that have not yet been paired/authorized via RFC 8628 (OAuth 2.0 Device Authorization Grant). It acts as an intermediary signaling channel where pre-authenticated admin clients can securely identify and interact with unauthenticated devices before full pairing.
| Name | Meaning | Default |
|---|---|---|
cookie-name | The name of the HTTP cookie that carries the JWT for admin validation. | auth_session |
jwt-jwk | The JSON Web Key (JWK) string used to verify the JWT signature. Can be the literal JSON or a path to a file depending on LWS configuration. | N/A |
max-devices | Maximum number of unauthenticated devices allowed to be pending simultaneously to protect against resource exhaustion or DDoS attacks. | 32 |
name, serial, user_code).{"cmd": "identify", "serial": "<device-serial>"}. The plugin will route this identify command down to the target device, allowing it to perform a physical identification action (e.g., blink an LED).