Documentation
¶
Overview ¶
Package wsauth provides the workflow-plugin-ws-auth SDK plugin. It implements HMAC-SHA256 challenge-response authentication for WebSocket connections with per-connection key derivation and sequence-based replay protection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWSAuthPlugin ¶
func NewWSAuthPlugin() sdk.PluginProvider
NewWSAuthPlugin returns the ws-auth SDK plugin provider.
Types ¶
type ProtocolEnforcer ¶
type ProtocolEnforcer = internal.ProtocolEnforcer
ProtocolEnforcer manages HMAC handshakes and validates signed messages.
func GetEnforcer ¶
func GetEnforcer() *ProtocolEnforcer
GetEnforcer returns the global protocol enforcer once the ws_auth.hmac module has initialized. Returns nil if the module has not started yet.
func NewProtocolEnforcer ¶
func NewProtocolEnforcer(sdkSecret []byte, serverID string) *ProtocolEnforcer
NewProtocolEnforcer creates a standalone protocol enforcer (useful for testing).
Click to show internal directories.
Click to hide internal directories.