wsauth

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 2 Imported by: 0

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).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL