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)
| 145 | // log.Fatal("Authentication failed:", err) |
| 146 | // } |
| 147 | func 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 | // |
no outgoing calls