Documentation
¶
Overview ¶
Package auth provides authentication utilities for the Detrix client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverToken ¶
DiscoverToken discovers the authentication token from environment or file. Priority: 1. DETRIX_TOKEN environment variable 2. ~/detrix/auth-token file 3. {detrixHome}/auth-token file (if detrixHome provided)
func IsAuthorized ¶
IsAuthorized checks if a request is authorized. Localhost requests are always authorized. Remote requests require a valid Bearer token.
func IsLocalhost ¶
IsLocalhost checks if the given address is localhost.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.