wsauth

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

workflow-plugin-ws-auth

⚠️ Experimental — This plugin compiles and passes its unit tests but has not been validated in any active GoCodeAlone-internal production deployment. Use with caution. Please open an issue if you adopt it so we can promote it to verified status.

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
cmd

Jump to

Keyboard shortcuts

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