MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NewAuthManagerWithPassword

Function NewAuthManagerWithPassword

pkg/api/auth.go:147–154  ·  view source on GitHub ↗

NewAuthManagerWithPassword creates a new authentication manager for password-based authentication. This method sets up the manager to use username/password authentication with automatic ticket management. The manager will authenticate with Proxmox and cache the resulting authentication ticket for s

(httpClient *HTTPClient, username, password string, logger interfaces.Logger)

Source from the content-addressed store, hash-verified

145// log.Fatal("Authentication failed:", err)
146// }
147func NewAuthManagerWithPassword(httpClient *HTTPClient, username, password string, logger interfaces.Logger) *AuthManager {
148 return &AuthManager{
149 httpClient: httpClient,
150 username: username,
151 password: password,
152 logger: logger,
153 }
154}
155
156// NewAuthManagerWithToken creates a new authentication manager for API token authentication.
157//

Calls

no outgoing calls