auth

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package auth implements `hadron auth ...`.

Index

Constants

This section is empty.

Variables

View Source
var PasskeyCapabilities = api.Capabilities

PasskeyCapabilities reads GET /capabilities. Package-level so tests can count or fail it (TestPasskeyListDiscoveryErrorIsOneLine injects an error); the default is the cached, unauthenticated api.Capabilities.

View Source
var PasskeyOpenBrowser = authpkg.OpenInBrowser

PasskeyOpenBrowser is the launcher `revoke-page --open` calls: argv, no shell, a leading '-' refused (auth.OpenInBrowser). Tests swap it so no test ever navigates.

View Source
var PasskeyStdoutIsTerminal = func(streams *output.IOStreams) bool { return streams.IsTerminal() }

PasskeyStdoutIsTerminal reports whether stdout is a terminal, the one condition under which --open may launch. A seam because the test streams can fake an input terminal but not an output one.

Functions

func NewCmdAuth

func NewCmdAuth(f *cmdutil.Factory) *cobra.Command

func PasskeyKeyMaterialNames added in v0.44.0

func PasskeyKeyMaterialNames() []string

PasskeyKeyMaterialNames returns the fields the server withholds over a bearer (hadron-server resolvers.passkeys.ts, #1631 §10): this read never selects or prints them. It is the ONE list both guards read, the operation-selection unit test here and the command-level --json key walk, so they cannot drift. A fresh copy each call, so no caller can edit it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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