auth

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WhoAmIWorkflowID = workflow.NewWorkflowIdentifier("whoami")

WhoAmIWorkflowID is the whoami workflow this check invokes. It's re-derived from the name (not imported from localworkflows) to avoid an import cycle; whoami_id_test.go pins it to the canonical constant to prevent drift.

Functions

This section is empty.

Types

type AuthStatus

type AuthStatus struct {
	OK           bool
	Identity     string
	ErrorMessage string
}

AuthStatus is the outcome of the live authentication check.

func Check

func Check(invocationCtx workflow.InvocationContext) AuthStatus

Check verifies authentication via the whoami workflow: a string result is the identity; error/empty is a failure. The call is bounded by authCheckTimeout via WithContext so a hung request cancels rather than blocking doctor.

func (AuthStatus) Findings

func (a AuthStatus) Findings() []diagnosis.Finding

Findings maps the auth status into the generic contract (Source = auth).

Jump to

Keyboard shortcuts

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