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

Method IsUsingTokenAuth

pkg/api/client.go:129–133  ·  view source on GitHub ↗

IsUsingTokenAuth returns true if the client is using API token authentication.

()

Source from the content-addressed store, hash-verified

127
128// IsUsingTokenAuth returns true if the client is using API token authentication.
129func (c *Client) IsUsingTokenAuth() bool {
130 // Check if the auth manager is using token authentication
131 // Token auth users have a '!' in their username (e.g., "user@realm!tokenid")
132 return c.authManager != nil && c.authManager.IsTokenAuth()
133}
134
135// GetBaseURL returns the base URL of the Proxmox API.
136func (c *Client) GetBaseURL() string {

Calls 1

IsTokenAuthMethod · 0.80